Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide > Customizable Product Scripts >
AddItem Method
This method creates a new instance of an item and adds the specified quantity to the solution. For example, Item A exists in the solution and has quantity three. You use AddItem to add two more Item A to the solution. The new solution will contain two instances of Item A, one with quantity three, and one with quantity two.
Syntax
AddItem (ParentObjPath, RelName, ProdName, Quantity) as Integer
Items
Can be used only for component products within the customizable product.
Returns
Returns 1 if the add was successful. Returns 0 if the add fails.
Example
See the section on product paths for an example of using AddItem.
Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide, Version 7.5 Published: 18 April 2003 |