12. Working With Classes : How You Can Create User Classes : Create Attributes for a User Class : Create Attributes from a Table
 
Share this page                  
Create Attributes from a Table
An alternative method for creating attributes for a user class is to create them from a database table.
To create a set of attributes that correspond to the columns of a database table
1. Create a new user class or open an existing one (for example, My_User_Class).
For more information, see Create a User Class (see Create a User Class).
2. Click the Attributes tab in the Class Editor.
3. Click Edit, Insert, From Database Table.
The Select a Database Table dialog appears.
4. Specify the table or view name in one of the following ways:
Enter the name of a table or view in the database that the application accesses.
Click the control button to the right of the entry field, and select a table from the Table Selection dialog that appears.
Click OK.
The name of the table you selected is displayed in the entry field.
5. Click OK.
Workbench displays the column names and data types on the Attributes tab in the Class Editor.
You can edit or delete any of the attributes and create additional attributes of your own.