Abstract
Loads an existing record with the given internal id
record internal id to load
Optional
isDynamic: booleanset true
if you want to load the record in dynamic mode
Creates an NSDAL instance for the given existing NetSuite record object.
This does NOT reload the record - it just wraps the supplied rec
an existing netsuite record
creates a new record
Optional
unused: Nullable<string | number>either null
or leave this parameter out entirely
Optional
isDynamic: booleantrue if you want to create the record in dynamic mode, otherwise uses standard mode.
Optional
defaultvalues: objectoptional defaultvalues
object - specific to certain records that allow initializing a
new record.
Protected
_Netsuite internal id of this record
Protected
Optional
defaultThe underlying netsuite 'record' object. For client scripts, this is the slightly less feature rich 'ClientCurrentRecord' when accessing the 'current' record the script is associated to.
Returns NetSuite field metadata. Useful for doing things like disabling a field on the form programmatically.
field name for which you want to retrieve the NetSuite field object
Static
recordThe netsuite record type (constant string) - this is declared here and overridden in derived classes
Since the netsuite defined 'CurrentRecord' type has almost all the same operations as the normal 'Record' we use this as our base class