new ItemSublist(sublistId, rec, _line): ItemSublist
Note that the sublistId and _line are used by the Sublist decorators to actually implement functionality, even
though they are not referenced directly in this class. We mark them as not-enumerable because they are an implementation
detail and need not be exposed to the typical consumer
Parameters
sublistId: string
netsuite internal id (string name) of the sublist
rec: Record
netsuite record on which the sublist exists
_line: number
the line number needed in decorator calls to underlying sublist. That's also why this is
public - so that the decorators have access to it.
the line number needed in decorator calls to underlying sublist. That's also why this is
public - so that the decorators have access to it.
currencyprecision
currencyprecision:number
expectedrate
expectedrate:number
forceSyncSourcing
forceSyncSourcing:boolean = false
If true, and in dynamic mode, this parameter can be used to alleviate a timing situation that may occur in some
browsers when fields are sourced. For some browsers, some APIs are triggered without waiting for the field
sourcing to complete. For example, if forceSyncSourcing is set to false when adding sublist lines, the lines
aren't committed as expected. Setting the parameter to true, forces synchronous sourcing.
fulfillable
fulfillable:boolean
fxrate
fxrate:number
id
id:number
ignoreFieldChange
ignoreFieldChange:boolean = false
If set to true, the field change and the secondary event is ignored.
inventorydetailavail
inventorydetailavail:boolean
inventorydetailid
inventorydetailid:number
isnumbereditem
isnumbereditem:boolean
itemid
itemid:number
itemtype
itemtype:string
lineid
lineid:number
nsrecord
nsrecord:Record
ownershiptransferscount
ownershiptransferscount:number
pocurrency
pocurrency:number
porate
porate:number
povendor
povendor:string | number
povendorkey
povendorkey:string | number
povendorurl
povendorurl:string
purchaseorder
purchaseorder:string | number
purchaseorderkey
purchaseorderkey:string
purchaseorderurl
purchaseorderurl:string
quantitybilled
quantitybilled:number
quantityexpected
quantityexpected:number
quantityexpectedorig
quantityexpectedorig:number
quantityreceived
quantityreceived:number
quantityremaining
quantityremaining:number
receivinglocation
receivinglocation:string | number
relatedtransactions
relatedtransactions:string | number
relatedtransactionsurl
relatedtransactionsurl:string
sequencenumber
sequencenumber:number
shipmentitem
shipmentitem:string | number
shipmentitemamount
shipmentitemamount:number
shipmentitemdescription
shipmentitemdescription:string | number
shipmentitemeffectivedate
shipmentitemeffectivedate:Date
shipmentitemexchangerate
shipmentitemexchangerate:number
shipmentitemfxrateoverriden
shipmentitemfxrateoverriden:boolean
shipmentitemkey
shipmentitemkey:string
shipmentitemtext
shipmentitemtext:string
shipmentitemurl
shipmentitemurl:string
sublistId
sublistId:string
netsuite internal id (string name) of the sublist
totalunitcost
totalunitcost:number
tracklandedcost
tracklandedcost:string | number
unit
unit:string
unitlandedcost
unitlandedcost:string
unitrate
unitrate:number
useDynamicModeAPI
useDynamicModeAPI:boolean
If true, uses dynamic mode API calls to access sublist line field values.
If false, uses standard mode
The default behavior is to use dynamic mode if the record is in dynamic mode. You can override this
(force using 'standard mode' APIs even with a dynamic record) by setting this value false prior to
your code that manipulates the sublist line.
vendorid
vendorid:number
weightlbs
weightlbs:string | number
Methods
getSubRecord
getSubRecord(fieldId): Record
Gets the subrecord for the given field name, handling both dynamic and standard mode.
Normally you don't call this method directly. Instead, simply define a property
on your sublist class matching the field name for the subrecord and decorate it as a subrecord.
e.g.
Defines a descriptor for nsrecord so as to prevent it from being enumerable. Conceptually only the
field properties defined on derived classes should be seen when enumerating
The 'item' sublist