NetSuite FastTrack Toolkit (NFT) - v8.0.0
    Preparing search index...
    subrecord: <T extends NetsuiteCurrentRecord>(
        ctor: new (rec: Record) => T,
    ) => (target: any, propertyKey: string) => any = subrecordDescriptor

    NetSuite SubRecord field type (reference to a subrecord object, usually described as 'summary' in the records browser. Pass in the (TypeScript) type that matches the subrecord this property points to

    Type Declaration

      • <T extends NetsuiteCurrentRecord>(
            ctor: new (rec: Record) => T,
        ): (target: any, propertyKey: string) => any
      • Decorator for subrecord fields with the subrecord shape represented by T (which defines the properties you want on the subrecord)

        Type Parameters

        Parameters

        • ctor: new (rec: Record) => T

          Constructor for the type that has the properties you want from the subrecord. e.g. AssemblyBuild.InventoryDetail

        Returns (target: any, propertyKey: string) => any

    import { InventoryDetail } from './DataAceess/InventoryDetail'

    class AssemblyBuild {
    @FieldType.subrecord(InventoryDetail)
    inventorydetail: InventoryDetail
    }