AddChild Method for a Property Set
The AddChild method adds a child property set to a property set. This method returns an integer that indicates the index of the child property set.
Format
oPropSet.AddChild(childPropSet)
AddChild Method for a Property Set describes the arguments for the AddChild method.
Argument | Description |
---|---|
childObject |
A property set that Siebel CRM must make as a child to the property set that the oPropSet variable identifies. |
Usage
You can use a property set to create a tree data structure. You can add any number of arbitrarily structured child properties to a property set. You can use a child property set to structure a property set in a manner that is similar to the structure that the data model uses. For example, a parent account property set can include child property sets for opportunities, contacts, activities, and so forth. In this example, you could create an independent property set named Opportunity, where accounts, contacts, and activities can be children.
If Siebel CRM creates an instance of a property set through script, and then adds it to a parent property set, and if the parent property set is subsequently released, then Siebel CRM does not release this child instance. The reference to the child instance exists independently.
Used With
Browser Script, COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script
Examples
The following fragment of Siebel eScript code adds child property sets to a parent property set:
var Account = TheApplication().NewPropertySet();
var Opportunity = TheApplication().NewPropertySet();
var Contact = TheApplication().NewPropertySet();
var Activity = TheApplication().NewPropertySet();
Account.AddChild(Opportunity);
Account.AddChild(Contact);
Account.AddChild(Activity);
Related Topics
For more information, see the following topics: