Tutorials > Sales Center > Add a new search option in the IBM Sales Center
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
- In the Package Explorer, navigate to the myNewExtensionsPlugin project.
- Inside the src folder, right-click on the myNewExtensionsPlugin package.
- Select New > File.
- In the File name field, enter extendedFindProductDialog.properties.
- Click Finish. The extendedFindProductDialog.properties file opens for editing.
- Add the following text to the file: extendedFindProductDialog.searchOption=Manufacturer Part Number
- 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:
- In the Editor view, click the Extensions tab of myNewExtensionsPlugin.
- Click Add.
- From the Available extension points list, select com.ibm.commerce.telesales.resources.resources. Click Finish.
- Right-click com.ibm.commerce.telesales.resources.resources and select New > resourceBundle.
- In the Extension Element Details pane, enter the following in the baseName field: myNewExtensionsPlugin.extendedFindProductDialog.
- Save the file.