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

< Previous | Next >


Create a properties file

The properties file is a resource bundle that contains translatable text that displays in the user interface. In this step, we will create a properties file that contains text for the new search option, and add an entry to myNewExtensionsPlugin to point to the new properties file.

To create the properties file:


Procedure

  1. In the Package Explorer, navigate to the myNewExtensionsPlugin project.

  2. Inside the src folder, right-click on the myNewExtensionsPlugin package.

  3. Select New > File.

  4. In the File name field, enter extendedFindProductDialog.properties.

  5. Click Finish. The extendedFindProductDialog.properties file opens for editing.

  6. Add the following text to the file: extendedFindProductDialog.searchOption=Manufacturer Part Number

  7. Save and close the file.

Any time you create a properties file, extend the com.ibm.commerce.telesales.resources.resources plug-in. For this tutorial, update myNewExtensionsPlugin to enable it to use the new properties file:

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

  2. Click Add.

  3. From the Available extension points list, select com.ibm.commerce.telesales.resources.resources. Click Finish.

  4. Right-click com.ibm.commerce.telesales.resources.resources and select New > resourceBundle.

  5. In the Extension Element Details pane, enter the following in the baseName field: myNewExtensionsPlugin.extendedFindProductDialog.

  6. Save the file.

< Previous | Next >


+

Search Tips   |   Advanced Search