Form Container
Overview
The "Form container" component is a container that shows 1 form inside it. It has no additional UI decorations. The contained form can optionally show related data.
It is suited for use in both Advanced (Responsive) and Simple CSS forms.
Get Started
Creating a Form Container
Here are the steps for creating a Form Container:
Open the Form Editor of the form where you need to place a Form Container
Find Form Container in Form Containers section in the components' pallet
Drag and drop the Form Container component in the desired place of the form
Select the
containedForm
property, where you set the name of the form you want to be displayed in the containerOptionally, you can use a relation by selecting the
relationName
property, where you set the relation between the main form and the contained formEdit other Form Container properties if needed
It is recommended to set a specific name
in the Form Container properties in order to make it easier to use it later in scripting.
Example: "fc_order_details"
.
Using a relation
The contained form can show related data. In order to do this, you need to have the following:
Set the
datasource
property on the main formSet the
datasource
property on the contained formMake sure that the relation from datasource table of the main form to datasource table of the contained form exists, otherwise it needs to be created
Set the above relation in the
relationName
property of the Form Container
Once everything is set, the contained form will show related data according to the selected record in the main form. When the selected record changes in the main form, so will the related data from the contained form.
Scripting a Form Container
Form Container properties can be also set in the Scripting Editor.
Setting the Contained Form
Here is an example of how to programmatically set the contained form, including relationName, in the Scripting Editor of the main form:
Other Form Container properties can be set the same way, by using elements.FormContainerName.FormContainerPropertyName
.
Last updated