Bookshelf Home | Contents | Index | PDF |
Siebel Interactive Designer API Reference > Siebel-Specific Functions > BuildProductStrUsageIn cases where the customizable product string cannot be automatically generated from the model, construct the string programatically using BuildProductStr and the supporting cell functions documented in this section. The function may be called in cell functions or as part of a button/link/javascript that executes after the configuration engine has run. SyntaxISS.BuildProductStr(id, qty, AttrStr[] attrs, ProdStr[] children, relationshipName)
ExampleExample 1var myChildStr = "relationship=ChildSlot&*prodID=ARS-625&*qty ISS.BuildProductStr("TRS-525",1,ISS.BuildAttributeList("Color "relationship=Slot1&*prodID=TRS-525&*qty=1&*attributes Example 2var child1 = ISS.BuildProductStr(ISS.GetBusCompID("CDPLAYER.PARTNUM"), 1, null, null, "CD_PLAYER"); var child2Attrs = ISS.BuildAttributeList(ISS.GetAttribute("SPEAKERS.WATT")); var child2 = ISS.BuildProductStr(ISS.GetBusCompID("SPEAKERS.PARTNUM"),4, child2Attrs, null, "SPEAKERS"); var rootPart = ISS.BuildProductStr(ISS.GetBusCompID("ROOT"),1, null, ISS.BuildChildList(child1, child2)); "relationship=null&*prodID=KJR-157&*qty=1&*attributes={}&*children={relationship |
Siebel Interactive Designer API Reference |