Creating Tables Using the Tables Dialog Box
Tables abstract the data in your host application to make it available to client
applications through SQL queries or other Host Integrator APIs. Tables columns
correspond to model attributes and fields. You can create tables for your host
application model in either online or offline mode.
Here's how you create a table using the Table dialog box:
- In the Design Tool, click Tables on the Model menu to open the Tables dialog
box.
- Then, click New in the Tables dialog box and select Table in the Create
a new table or procedure dialog box that appears.
- Type a name for the new table in the Name box.
This is the name Host Integrator will use to identify the table in the Table
Editor and that client applications use to query the host application model.
- Type a description of the table in the Description box.
- To add columns to the table:
- Click the Add Column (+) button to the right of the Columns
box to add one or more new columns.
- In the Name field, replace the auto-generated column name
(Column1, Column2, etc) with a meaningful name, typically the name of the
attribute or recordset field that this column will be mapped to in a procedure.
- Select the column's data type by clicking the down arrow in the
Data Type entry area and selecting one of the options: Float, Integer,
or Text.
- Click the Key box to identify this column as the key.
- If required, specify the column's minimum and maximum values
in the Column properties minimum/maximum boxes.
- Enter a description of the column in the Description box.
- If you want the Host Integrator to return a partial
set of data to a querying application using SQL, select the Allow SQL SELECT
statements to return a subset of columns when all columns are requested
box. If you clear this check box, Host Integrator returns an error to a querying
application if it cannot return all columns when a wildcard '*' is specified
in SQL.
Note: You can create tables using the Table
Wizard, which prompts you for the necessary information.
© 1999-2007 Attachmate Corporation. All rights reserved.
Terms of Use.