Develop > Presentation layer > Customize IBM Sales Center > Controls
Modify a table definition
To modify a Sales Center table definition:
Procedure
- Declare a new table definition using the com.ibm.commerce.telesales.widgets.tableDefinitions extension point.
- -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.
- Optional: If 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.
- 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 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 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.
Related concepts
Related tasks
Declare a composite definition