Siebel Product Administration Guide > Siebel Configurator Scripts > Siebel Configurator Script Events and Methods >

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

Argument
Description

ParentObjPath

String. The product path to, but not including, the relationship in which the component product resides. Use product path syntax to specify the path. If the component product is located at the product root, then specify the product root as the ParentObjPath.

RelName

String. The name of the relationship containing the component product you want to add. If the component product is located at the product root, then specify the customizable product name as the RelName.

ProdName

String. The name of the product you want to add. Use product name syntax to specify the product name.

Quantity

String. The amount of the product you want to add.

Items

Can be used only for component products within the customizable product.

Returns

Returns the integration id of the item added if the add was successful. Returns 0 if the add fails.

Example

For an example of using AddItem, see About Product Path in Siebel Configurator Scripts.

Siebel Product Administration Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.