WebSphere Commerce EnterpriseWebSphere Commerce Professional

Modifying a table definition

To modify a Sales Center table definition:

Procedure

  1. Declare a new table definition using the com.ibm.commerce.telesales.widgets.tableDefinitions extension point.
  2. -If you are adding columns to the end of the table definition, then you should use the referenceId attribute to specify the fully-qualified ID of the table definition that you are replacing. The table columns declared in the new definition will be appended to the end of the definition.
  3. Optional: If you need to reorganize the table columns, then you should not use the referenceId attribute, but instead re-declare the entire definition. You can use the referenceId attribute on the column elements so you don't need to completely re-declare the columns.
  4. After re-declaring the new table definition, use the system configurator to indicate that the new definition should be used instead of the Sales Center definition. Table definitions that refer to the removed table definition using the referenceId attribute will not be affected.

Results

Changing the default ordering sequence of a table column - By default a table is being sorted by it's first column in ascending sequence. If you need to change the default ordering sequence of table column in ascending or descending order, you can do that while defining the table. Set the initialSort attribute to true for a column for which you want to sort the table and then set the ordering sequence as ASC or DESC. Here, make sure that the table should have only one column for which the initialSort attribute is set to true. The same approach is also applicable to the existing tables while customizing them.