Open topic with navigation
Formatting Transformations
Formatting transformations enable you to apply transformations to attribute values, rows, column, tabs, and cells. The following formatting transformations are available and are defined in the sections below:
- Attribute Formatting Transformations
- Row/Column Text Formatting
- Tab Formatting
- Cell Formatting
Prequisites
The instructions in the following subsections assume that you have already added the specified transformations to your table by following the instructions in the Add a Transformation to a Table or Table Type subsection of the Table Transformations topic here.
Attribute Formatting
The Attribute Formatting transformation allows you to apply an attribute transformation to any selected attribute in the table. These transformations perform tasks on an attribute such as calculating or replacing a value, or applying a prefix or a suffix.
Example
The below column samples show how attribute values look before applying the transformation (left) and how they look after (right). The applied attribute transformation inserts the text 'Made of' before the attribute values for 'Material.'
Steps
- After adding the transformation, under Parameters, click the ellipsis button (…). The Attribute Formatting dialog displays.
- Search or browse for the attribute to which you want to apply a transformation. Alternatively, click on the Legal Attributes tab to access the attributes that are linked locally to the product / classification node on which your table is built.
- Click Add Transformation to launch the Select Transformation dialog. Select the relevant transformation, and then click OK.
The list of transformations is identical to those that are available when creating an attribute transformation in System Setup. For more information on the attribute transformations and what they do, See the Attribute Transformation Options topic in the System Setup / Super User Guide documentation here.
Row/Column Text Formatting
The Row/Column Text Formatting transformation enables you to transform data in specific columns or rows. You can calculate or replace values or apply prefixes and suffixes to values in entire columns and rows in one operation. Where the Attribute Formatting transformation is applied to a specific attribute, the Row/Column Text Formatting transformation enables you to transform data in columns and tables of your own choice.
- After adding the transformation, under Parameters, click the ellipsis button (…). The Row/Column Text Formatting dialog displays.
- Select Ignore Headings if you want the transformation to ignore contents in header column types.
- Click the ellipsis button (…) to launch the Select Row/Column dialog.
- Select Row or Column to specify whether the transformation applies to a row or a column.
- Select Attributes to apply the transformation to the column that contains the specified attribute. Click the ellipsis button (…) to search or browse for the relevant attribute.
- Select Product/Classification/Asset to apply the transformation to the column that contains the specified object. Click the ellipsis button (…) to search or browse for the relevant object.
- Select Heading to identify a column or row by typing the header text of the relevant column or row.
- Select Type to identify the column or row by selecting Column Type or Row Type.
- Select Number to identify the column or row by entering the sequence number of the relevant column or row. For example, if you want to apply the transformation the second column, then type 2.
- Select Group to apply the transformation to multiple columns. For more information, see the instructions provided for the Rule When Different transformation in the Layout Transformations topic here.
- Click Add Transformation to launch the Select Transformation dialog.
The list of transformations is identical to those that are available when creating an attribute transformation in System Setup. For more information on the attribute transformations and what they do, See the Attribute Transformation Options topic in the System Setup / Super User Guide documentation here.
- Select the relevant transformation, then click OK.
Tab Formatting
The Tab Formatting transformation inserts a tabulator in a row or column, which indents the text in the row or column with a tab.
Example
The below screenshot shows how a column looks before (left) and after (right) applying the transformation, which in this example inserts a tab before the values in the 'Color' column.
Steps
- After adding the transformation, under Parameters, click the ellipsis button (…). The Tab Formatting dialog displays.
- Select Ignore Headings if you want the transformation to ignore contents in header column types or header row types.
- Click the ellipsis button (…) to launch the Select Row/Column dialog. The options available in this dialog have already been explained in this topic in the Row/Column Text Formatting section above; refer to that section for more information.
- Click OK.
Cell Formatting
The Cell Formatting transformation allows you to narrow down formatting to individual cells in a table.
Example
This example uses two Cell Formatting transformations—one to change cells containing the word 'Blue' to have a light blue background and bold text, and the second to change cells containing the text 'Royal Blue' to a darker blue color, retaining the bold text applied in the first Cell Formatting transformation.
Steps
- After adding the transformation, under Parameters, click the ellipsis button (…). The Cell Formatting dialog displays.
- In Search Expression, enter a regular expression to find specific cells. This option is case sensitive. For example:
- Enter the search expression 'Blue.' The value Blue is searched in the entire table and, if the value matches, the specified style will be applied to the cell.
- Enter the search expression as [A-Z]. The characters A to Z will be searched and, if any matches are found, the specified style will be applied to the cell.
- Check the Only for rows/columns box if you want the formatting to apply only for cells in specific rows or columns.
- Click the ellipsis button (…) to launch the Select Row/Column dialog. The options available in this dialog have already been explained in this topic in the Row/Column Text Formatting section above; refer to that section for more information.
- In the Color to apply list, select the color you want to apply to the cells, or leave the default option of 'Do not change background color.'
- In the Style to apply list, select the style that you want to apply to the cells, or leave the default option of 'Do not change text style.'
- Click OK.
2018, Stibo Systems