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

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

class AssemblyBuild {
@FieldType.subrecord(InventoryDetail)
inventorydetail: InventoryDetail
}
  • 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

        • new (rec): T
        • Parameters

          • rec: Record

          Returns T

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

      • (target, propertyKey): any
      • Parameters

        • target: any
        • propertyKey: string

        Returns any