Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Property Set Methods > AddChild MethodThe AddChild method is used to add subsidiary property sets to a property set, so as to form hierarchical (tree-structured) data structures. SyntaxoPropSet.AddChild(childPropSet as PropertySet) ReturnsAn integer indicating the index of the child property set. UsageProperty sets can be used to create tree-structured data structures. Any number of arbitrarily structured child property sets can be added to a property set. You may use child property sets to structure a property set in a manner similar to the data model. For example, the parent property set might be Account, with child property sets for opportunities, contacts, activities, and so on. At the same time, you could construct an independent property set called Opportunity, to which accounts, contacts, and activities might be children. If a property set is instantiated within script and then added to a parent property set, the child property set is not released when the parent property set is released. This is because a reference to the child property set still exists independently. Used WithBrowser Script, COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script, Web Client Automation Server ExampleThe following fragment of eScript code shows how child property sets may be added to a parent property set: var Account = TheApplication().NewPropertySet(); Account.AddChild(Opportunity); Related Topics |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |