Adding Virtual Primary Key Relationships

For database tables that do not have explicit primary keys, you can specify the primary key relationships in Iron Speed Designer, allowing you to create Add Record, Edit Record and Show Record pages for these tables.  You don’t have to change your database schema in order to generate full-featured applications.

Benefits

Virtual primary keys provide all of the benefits of a real primary key (explicitly declared within the database) to a database table or database view:

Virtual primary keys have several additional benefits:

How to Add a Virtual Primary Key

Add virtual primary keys in the Field Display Properties dialog, accessible from either the Databases folder in the Application Explorer or the Page Properties dialog.

To create a composite virtual primary key, check the “Virtual primary key” box for each field in the composite primary key.

Caveats

Virtual primary keys cannot be added to physical tables that already have a physical primary key.  Tables cannot have multiple primary keys, either physical or virtual.

See Also

Setting Field Display and Data Validation Options

Primary and Foreign Key Options

Adding Virtual Foreign Key Relationships