To define a subtype table:
•Identify the table that is the supertype table.
•Define the columns that are specific to the subtype.
USoft Developer will automatically insert the primary key fields to link the subtype to its supertype.
You can define a subtype table by filling out a form (an info window) or by using the New Subtype wizard. Once the subtype table exists, you can modify it by double-clicking its name in the Project Catalog where it will appear as a subnode of the supertype table.
To define a subtype table by filling out a form:
|Choose Define, Tables, Database Tables from the USoft Definer menu.
|The Database Tables windows or tab is opened.
|Provide a Table Name, Abbreviation, Object Name and Object Name Plural for the new subtype table.
|In the Supertype field, identify the table that is the supertype table.
|On the Columns tab, define the columns that are specific to the subtype.
|Save work. Click Create to create the new subtype table in the database.
To define a subtype table by using the New Subtype wizard:
|Right-click on the supertype table name in the Project Catalog, and choose New Subtype.
|The New Subtype wizard appears.
|Enter the requested information in each of the wizard's dialogs.
|You will be prompted to specify the columns that are to be part of the subtype table.
Supertypes and Subtypes