Defining Value Tables for CustomBlock Definitions

Use the CBValueTable command to display or update the value table associated to a table activity in a CustomBlock definition.

You can add properties and values to the value table.

To display or update a value table for a table activity:

Note: Make sure that the CustomBlock definition contains at least one table element that has an associated table activity. Associating a table activity to a table element creates an empty value table.

  1. In the Block Editor, type CBValueTable at the command prompt.
  2. In the graphics area, specify a table element.

    The Property Value Table dialog box displays the existing value table for the specified table activity.

    You can do the following:

  3. Click OK.

To add properties to the value table:

  1. In the Property Value Table dialog box, click Add Properties.
  2. In the Add Element Properties dialog box, do the following:
    1. Specify the type of property to add to the table:
      • Add input properties. The element properties list displays the available input properties that you can add to the table.
      • Add table properties. The element properties list displays the available table properties that you can add to the table.
    2. From the list, select an element and click OK to add it to the table.

      The corresponding column appears in the table.

  3. Repeat step 1 and 2 to add more properties and to complete the table.

To add values to a value table:

  1. In the Block Editor, type CBValueTable at the command prompt.
  2. In the graphics area, specify a table element.

    The Property Value Table dialog box displays the value table defined for the associated table activity.

  3. In the States column, type the name of each value state.
  4. Click an empty cell.
  5. Do one of the following:
    • Enter a value.
    • Specify a value from the drop-down list.

    Note: Drop-down lists are available only if the element has a value set.

  6. Repeat step 4 and 5 as necessary to complete the table.
  7. Click OK.

To delete value states from the value table:

  1. In the Property Value Table dialog box, select the lines corresponding to the value state to delete.
  2. Click Delete.

To check for errors a value table:

  1. In the Block Editor, type CBValueTable at the command prompt.
  2. In the graphics area, specify a table element.
  3. In the Property Value Table dialog box, click Check.

Access

Command: CBValueTable

Related Topics

About Value Tables

Applying Table Activities

Parent Topic

Associating Data to CustomBlocks