Add a custom column

To create an additional field that can store non-standard information, perform the following steps:

  1. Go to the Configuration menu → General Configuration → Custom Fields and Columns → Custom Columns tab.

    Custom columns.png
  2. Click the Add Custom Column button. You will be directed to the Add Custom Column page.

    Add custom column0.png
  3. From the Class Name drop-down list, select the scope for the new column. It will define the area of the XTRF where this column will be available for adding.

  4. Provide the Name from the new column.

  5. Decide whether the column should be Active, i. e. available for adding.

  6. Select the column’s Type:

    • Plain

    • HTML

    • Entity Name

  7. Leave the Role Name field empty.

  8. From the Script Language drop-down list, select the Groovy or Apache Velocity language.

  9. (Optional) Click the Editor Options button to open editor settings.

  10. In the Expression field, enter the code for the new column.

  11. (Optional) To test if the new column is working correctly, perform the following steps:

    1. Click the Editor Options button.

    2. In the Test Objects field start typing the name of the entitiy that can be used for testing. The list of appropriate objects will appear.

    3. Select the desired object.

    4. Scroll down to the Test Cases section and click the Add Test Case button. The Add new Test Case pop-up window will appear.

      1. Provide the Name for the test.

      2. Click the Save button. The newly created test will appear in the Test Cases section.

    5. Click the icon to run the test. If the test is successful, you will see the Test successful notification and a green check mark next to the test.

  12. Click the Save button.

Â