Tutorials > Sales Center > Add a new search option in the IBM Sales Center

< Previous | Next >


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

  1. In the Editor view, click the Extensions tab.

  2. Right-click com.ibm.commerce.telesales.widgets.compositeDefinitions and select New > stackCompositeDefinition.

  3. In the Extension Element Details page, enter the following values:

    Detail Value
    id findProductQuickStackDefinition
    referenceId com.ibm.commerce.telesales.ui.impl.findProductQuickStackDefinition

  4. Save the file.

  5. Right-click findProductQuickStackDefinition and select New > Control.

  6. In the Extension Element Details pane, set the controlId value to MyNewSearchOption.

  7. Save the file.

< Previous | Next >


+

Search Tips   |   Advanced Search