Child pages
  • Placing Forms Within a Form

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A tabpanel is a Servoy control/object that can be placed on a form.  See Intro to Servoy Concepts for more information about tabpanels.  For this example, we will place the newly created orders form on the customers detail form.

To place a tabpanel on a form:

  1. Make sure the desired form is open in Form Designer and selected
  2. Do one of the following
       
    1. Press ctrl-alt-t.
    2. Select Elements>Place TabPanel from the menu.
    3. Click on the TabPanel button on the Developer toolbar.
  3. A window will appear for selecting a tabpanel form.
  4. Choose a form
    1. For a related form, choose the form through the relation desired. For this example, open the node for the customers_to_orders relation and select the newly created orders form.
    2. For a unrelated form, choose the form through the Unrelated node.
  5. The tabpanel will appear with the chosen form inside it.
  6. To place another form in the tabpanel, select the tabpanel in Form Designer and use one of the same commands in step 2 above.

...

Conclusion

...

The customers form should now show the orders form within the tabpanel. Since the form was added through a relation, the data in the orders form are related records to the selected customer.  If the customer record is navigated, the records in the order form will also reload to the related records for currently selected customer record.