Query.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 is the corresponding query.Component object.

The object values are set with the execution of Query.autoJoin(options) and Component.autoJoin(options). The order of the key-value pairs reflects the parent/child hierarchy.

Type

Object

Module

N/query Module

Parent Object

query.Query

Sibling Object Members

Query Object Members

Since

2018.1

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.

            // Add additional code
...
    var myCustomerQuery = query.create({
        type: query.Type.CUSTOMER
    });
    var mySalesRepJoin = myCustomerQuery.autoJoin({
        fieldId: 'salesrep'
    });
    var myTaskJoin = myCustomerQuery.autoJoin({
        fieldId: 'task'
    });
    var theChild = myCustomerQuery.child;
...
// Add additional code 

          

Related Topics

General Notices