Creating a Relationship Between a Database Table and a User Class
- Determine the primary table name for the form:
- Open the form to which you want to add a UET field.
- Select Edit > Design Mode.
- If the form properties sheet is not open, select View > Form Properties.
- Select the Collections tab on the property sheet.
- In the collections tree, select the primary collection.
- The Base Table and Alias property shows the primary table name.
Note: Certain tables cannot be extended. See User Extended Tables Overview. - Associate a user class with the application database table:
- On the UET Table/Class Relationships form, select Actions > New.
- In the Table Name field, select the table, as determined above, with which you want to associate a class.
- In the Class Name field, select a class to associate with the table.
- Select Active to be able to draw user fields on application forms.
- Click Rule Assistant.
- Select a field, an operator and a value for the rule.
- Select OR instead of AND with previous clause if you want to find all records that match one of the search criteria instead of finding all records that match the search criteria in the previous clause.
- Click Add to add the rule. The rule displays in the (Criteria) field.
- Click OK.
- Save your changes.
Related topics