Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Component.parent for more information.
N/query Module
Component.parent
Property Description:
A reference to the parent query.Component object of this component.
This property is set during the execution of Query.autoJoin(options) or Component.autoJoin(options).
Type:
string (read-only)
Module:
N/query Module
Parent Object:
query.Component
Sibling Object Members:
Component Object Members
Since:
2018.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Component.parent
Example:
// Code Example 1
// Add additional code
//...
var myCustomerQuery = query.create({
type: query.Type.CUSTOMER
});
var mySalesRepJoin = myCustomerQuery.autoJoin({
fieldId: 'salesrep'
});
var myDeptJoin = mySalesRepJoin.autoJoin({
fieldId: 'department'
});
var theParent = myDeptJoin.parent;
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1510785228.html