Step 1g: Declare virtual foreign keys in Iron Speed Designer

Iron Speed Designer has a ‘virtual foreign key’ facility that allows you to instruct Iron Speed Designer to treat certain fields as if they are foreign key fields, even if they’re not explicitly declared as foreign key fields in your underlying database.  As with explicitly declared foreign keys, Iron Speed Designer uses virtual foreign key relationships to create master-detail pages.

This is especially useful for database views which may not be permitted to have explicit foreign keys.  Unfortunately not all databases permit you to explicitly declare foreign keys in database views, so declaring a virtual foreign key in Iron Speed Designer may be the only way to create certain page types.  Even if the database does permit foreign keys for views, the particular views you are using may not have them defined.

Declare your virtual foreign keys in Iron Speed Designer before using the Application Wizard, especially for database views.  Defining virtual foreign keys in Iron Speed Designer will greatly enhance the suite of pages that can be created.

Examples:

SalesRepSummaryView.EmployeeID à Employees.EmployeeID

SalesByRegionView.RegionID à .Regions.RegionID

See Step 5: Select Virtual Primary Keys and Virtual Foreign Keys for details.

See Also

Step 1a: Create child tables for one-to-many relationships

Step 1b: Create separate lookup tables

Step 1c: Create database views to express multi-table joins and complex queries

Step 1d: Explicitly declare primary keys in your database

Step 1e: Explicitly declare foreign keys in your database

Step 1f: Declare virtual primary keys in Iron Speed Designer

Step 1g: Declare virtual foreign keys in Iron Speed Designer