Component.target
The content in this help topic pertains to SuiteScript 2.0.
Property Description |
The query type of this component. This property can also be described as the polymorphic relationship of this component. This property is set during the execution of Query.joinTo(options) and Component.joinTo(options). |
Type |
string (read-only) |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2018.1 |
Syntax
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 myTransactionQuery = query.create({ type: query.Type.TRANSACTION
}); var myEmployeeJoin = myTransactionQuery.joinTo({ fieldId: 'createdby', target: 'employee'
}); var theTarget = myEmployeeJoin.target;
...
// Add additional code