Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=currentRecord.CurrentRecord for more information.
N/currentRecord Module
currentRecord.CurrentRecord
Object Description:
Encapsulates the record active on the current page.
Supported Script Types:
Client scripts
For more information, see SuiteScript 2.0 Client Script Type.
Module:
N/currentRecord Module
Since:
2016.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=currentRecord.CurrentRecord
Example:
// Code Example 1
//Add additional code
//...
var objRecord = currentRecord.get();
//...
//Add additional code
// Code Example 2
//Add additional code
//...
function pageInit(context) {
var currentRec = context.currentRecord;
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4642657958.html