Tutorials > Sales Center > Add a column to the order items table

< Previous | Next >


Create a properties file for the new order items table

In this step, we will create a properties file that contains text for the new table column, and add an entry to the availabilityDate plug-in to point to the new properties file.

The properties file is a resource bundle that contains translatable text that displays in the user interface widget.

To create the properties file:


Procedure

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

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

  3. Select New > File.

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

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

  6. Add the following to the file of the form key=text: extendedOrderItem.availabilityDate=Availability Date Availability Date is the text that will display on the new column heading of the order items table.

  7. Save and close the file.

To update availabilityDate plug-in to point to the new properties file:

  1. In the Editor view, click the Extensions tab of the availabilityDate plug-in.

  2. Click Add.

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

  4. In the All Extensions pane, 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: availabilityDate.availabilityDateText. The text before the period is the name of the package that contains the properties file. The text after the period is the name of the properties file without the .properties extension.

  6. Save the file.

< Previous | Next >


+

Search Tips   |   Advanced Search