Tutorials > Sales Center > Add a new search option in the IBM Sales Center
Extend the stackCompositeDefinition
In the previous steps, you created three control widgets to define the new search option and a gridCompositeDefinition to group the three widgets together as a composite. In this step, we will add the new search option to the existing Select option list by adding the new control widget, MyNewSearchOption, to the existing findProductQuickStackDefinition. The referenceId tag references the default definition of the search terms: Product Identification, Short Description, and Category. The control tag will reference the new search option, label and field.
To add the new option to the Search option list:
Procedure
- In the Editor view, click the Extensions tab.
- Right-click com.ibm.commerce.telesales.widgets.compositeDefinitions and select New > stackCompositeDefinition.
- In the Extension Element Details page, enter the following values:
Detail Value id findProductQuickStackDefinition referenceId com.ibm.commerce.telesales.ui.impl.findProductQuickStackDefinition
- Save the file.
- Right-click findProductQuickStackDefinition and select New > Control.
- In the Extension Element Details pane, set the controlId value to MyNewSearchOption.
- Save the file.