Bookshelf Home | Contents | Index | PDF |
Product Administration Guide > Customizable Product Scripts > Cfg_ChildItemChanged EventAfter a user request is processed and the eConfigurator engine computes a new solution, this event is called for the product root. The event returns a property set containing all the products whose quantities have changed. This event is also called if the user changes an item's quantity and the Request Conflict dialog box displays:
This event does not return items for which only attribute values have changed. For example, if the total number of 100 GB disk drives in a solution changes, this event returns a property set containing the 100 GB disk drive because the item quantity changed. If the user enters or selects 10 feet as the desired value of the length attribute for power supply wiring, the returned property set does not contain power supply wiring since this is an attribute change. In the selection pages for a customizable product, this event is called when the user selects an item. It is also called when the user increases or decreases the quantity of an item. This event is called before the Cfg_ItemChanged event. SyntaxCfg_ChildItemChanged (ChangedItem as Property Set) The ChangedItem argument is passed as type PropertySet. This is a named XML element: <ChangedItem ObjName= "objname" OldQty= "oldqty" The properties of this XML element are defined in the following table: Several Siebel API-related methods are needed to read data from the property set:
ReturnsUsageUse this event to determine what changes have been made to products in the solution and to submit additional requests as needed. For example, you could track the memory requirements for software the user selects and submit requests to add the correct amount of RAM to a computer configuration. When you submit a request that changes item quantities, the submission causes the event to be called and the script runs again. Be sure to insert logic in the script that prevents an infinite loop of request submissions. ExampleThe following Siebel Visual Basic example writes to a file the item name, the old quantity, and the new quantity of all the items whose quantities change in each solution. Sub Cfg_ChildItemChanged (ChangedItem As PropertySet) hndl = Freefile |
Product Administration Guide |