You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 6
Next »
Forms may be placed within other forms by placing a tabpanel on a form. A tabpanel can show other forms with the solution (including forms from other modules).
Before we can place a related form on another form, we must create a Relation. A relation is a link between to tables (or a global variable and a table)
For this example, we will create a relation in the example_data database from customers to orders.
To create a relation:
- Do one of the following
- Select the table for the left side of the relation by clicking on the ... button. For this example, select example_data.customers
- Select the table for the right side of the relation by clicking on the ... button. For this example, select example_data.customers.
- Select the primary key of the parent(left) table and the matching foreign key of the child(right) table. For this example, ensure the customer_id equals the customer_id.
- Set the constraints for the relationship. For this example, leave them as they are by default.
- Save the relation editor. See Intro to Servoy Developer environment