Binding Host Tables to Table Controls

There are two types of screen binding that can be used to connect host tables and table controls: input binding and output binding. With input binding, you populate a table control with data from a host table. Using output binding, you send data from a table control to the host.

If you autogenerate a table control from a host table in the Table editor, an input binding is automatically created between the host table and the table control. However, if you choose not to autogenerate the table control, or if you want to bind the host table to more than one table control, you would manually create a table control using the Control palette, and then bind it to the host table using the Table Binding editor. (Output bindings are always created using the Table Binding editor.)

To bind a table control to a host table with input binding
  1. In Presentation Designer, add a table control to your form.

    For details about how to add a table control, refer to the topic, Adding Controls.

  2. In the Table editor, create a host table.

    For details about how to create a host table, refer to the topic, Creating and Editing Tables.

  3. In the Customize pane, right-click your table control, point to Table Binding, and then click New.

    The Table Binding editor appears, with the Input page displayed.

  4. Map the host table columns to table control columns.
    To display
    Do this
    All host table columns in the table control as a single-column list
    • Select Output the Table as a Single Column, and then click OK.
    Host table columns in specific table control columns
    1. Select Choose from Defined Columns.

    2. From Host Table Columns, select a column, and then from Table Control Columns, select the column in which you want to display the data from the specified host table column.

    3. Click Add Mapping.

      The host table column and table control column are listed in the mapped columns list.

    4. Continue mapping columns until every host table column you want to display is mapped to a table control column.

    5. When you are done, click OK.
To bind a table control to a host table with output binding
  1. In Presentation Designer, add a table control to your form.

    For details about how to add a table control, refer to the topic, Adding Controls.

  2. In the Table editor, create a host table.

    For details about how to create a host table, refer to the topic, Creating and Editing Tables.

  3. In the Customize pane, right-click your table control, point to Table Binding, and then click New.

    The Table Binding editor appears, with the Input page displayed.

  4. Select the Output Binding tab.

  5. Select Send the Table Cell Value to a Host Field.

  6. From the Column drop-down box, choose the column in the table control from which the value will be sent to the host.

    Specifying a column causes data from that column to be sent to the host when the user double-clicks that row; <NONE> causes data to be sent to the host when the cell is selected.

  7. From the Host Field drop-down box, select the field to which the transmitted data will be sent.

    When the user double-clicks a cell or row on the table control, the value is entered into the host field as if he or she had typed it directly onto the host.

  8. Click OK.
Related Topics
Bullet Working with Tables, Overview
Bullet Creating and Editing Tables
Bullet Adding Controls
Bullet Table Rules Syntax
  Attachmate