Constructs a new array-like representation of a NS sublist.
the type (should be a class extending SublistLine
) to represent individual rows
of this sublist
the NS nativerecord.Record
instance to manipulate
name of the sublist we're representing
name of the sublist we're representing
Readonly
sublistthe type (should be a class extending SublistLine
) to represent individual rows
of this sublist
array-like length property (linecount)
number of lines in this list
If true and the underlying netsuite record is in dynamic mode, uses the dynamic APIs to manipulate the sublist (e.g. getCurrentSublistValue()
)
If false uses 'standard mode' (e.g. getSublistValue()
)
Defaults to true if the record is in dynamic mode. Set this to false prior to manipulating the sublist in order
to force standard mode API usage even if the record is in 'dynamic mode'
adds a new line to this sublist at the given line number.
set true to avoid line recalc
optionally set line # insertion point - defaults to insert at the end of the sublist. If in dynamic mode this parameter is ignored (dynamic mode uses selectNewLine()). The insertion point should be <= length of the list
commits the currently selected line on this sublist. When adding new lines in standard mode you don't need to call this method
Gets the NetSuite metadata for the given sublist field. Useful when you want to do things like disable a sublist field or other operations on the field itself (rather than the field value/text) Note: this uses the first sublist line (0) when retrieving field data
name of the desired sublist field
Protected
rebuildupserts the indexed props (array-like structure) This is called once at construction, but also as needed when a user dynamically works with sublist rows.
removes a line at the given index. Note this causes the array to rebuild.
Selects the given line on this sublist
line number
creates a sublist whose lines are of type T