Tutorials > Sales Center > Add an editable column to the Order Items table by creating a new widget manager
Create a properties file for the new Order Items table
The properties file is a resource bundle that contains translatable text to display in the user interface widget. In this step, you create a properties file that contains text for the new "Fulfillment Center" table column, and add an entry to the com.example.commerce.telesales.myNewPracticePlugin plug-in to point to the new properties file.
To create the properties file:
- In the Package Explorer view, navigate to the com.example.commerce.telesales.myNewPracticePlugin > src > com.example.commerce.telesales.myNewPracticePlugin project.
- Right-click com.example.commerce.telesales.myNewPracticePlugin package, and select New > File
- In the File name field, enter FulfillmentText.properties.
- Click Finish. The FulfillmentText.properties file opens for editing.
- In the FulfillmentText.properties file, add the following text to the file in the form key=text:
extendedOrderItem.fulfillmentData = Fulfillment Centers Fulfillment Centers is the text to be displayed on the new column heading of the Order Items table.
- Save and close the file.
To update com.example.commerce.telesales.myNewPracticePlugin plug-in to point to the new properties file:
- In the Editor view, click the Extensions tab of the com.example.commerce.telesales.myNewPracticePlugin plug-in.
- Click Add.
- From the Extension Points list, select com.ibm.commerce.telesales.resources.resources and click Finish.
- In the All Extensions pane, select com.ibm.commerce.telesales.resources.resources > resourceBundle.
- In the Extension Element Details pane, enter com.example.commerce.telesales.myNewPracticePlugin.FulfillmentText in the baseName field
The text before the .FulfillmentText is the name of the plug-in and the text after that is the name of the properties file without the .properties extension.
- Save the file.