Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

Component.child

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Component.child for more information.

N/query Module
Component.child
Property Description: A reference to children of this component. The value of this property is an object of key/value pairs. Each key is the name of a child component. Each respective value refers to the corresponding query.Component object. The object values are set during the execution of Query.autoJoin(options) and Component.autoJoin(options). The order of the key/value pairs reflects the parent/child hierarchy.
Type: Object (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.child

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 theChild = mySalesRepJoin.child;
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1510785245.html