![]() ![]() Creating Relationship between MainForm and SubFormĬreate a lookup in the SubForm and relate it to the parent form. The Column Properties option in the MainForm report is used to configure the SubForm report and the SubForm fields to be displayed in the report, as shown below. The MainForm report, (Order View) will display all the orders with the values of the selected SubForm fields, as shown below. You can use the " Add +" or the " Add New" button to add entries to the MainForm from the SubForm. Here, the " Order form" displays the " Items" SubForm to add the items ordered. When you access the application, the SubForm will be displayed within the MainForm, as shown below. The SubForm will be inserted into the MainForm as shown below: You can also select the Blank form option and directly create the SubForm within the MainForm. Click Done to insert the SubForm to the MainForm. ![]() For example, select the " Order Item" form in the " Order Management" application as the SubForm. In the Adding SubForm screen, a dialog box appears where you have to select the Form to be added as the SubForm field and click on Done. For example, drag-n-drop the " Items" form into the " Order" form. In the edit mode of the MainForm, simply drag-n-drop the SubForm field type at the required position in your editor area. Here, " Order" form is the MainForm and " Items" form is the SubForm. ![]() For example, add the " Items" form to enter the Items ordered and the " Order" form to enter details about each order. Please find the steps given below to create a SubForm.Īdd the required Forms to your application from the dashboard page by selecting Create New -> Form option. Zoho Creator supports the " SubForm" field type using which you can insert a SubForm into your MainForm. The sample application " Order Management" illustrates the SubForm feature. The data in the Item table is the "many" side of the relationship - each order can have more than one item. The data in the order table is the "one" side of the relationship. In this case, the order information would display on the SubForm. For example you would use a SubForm if you wanted to display an order with the order details. SubForms are generally used to show data from tables that have a one-to-many relationship. The primary form is called the MainForm, and the form that is inserted in it is called the SubForm. To add multiple attachments to a recordĪ SubForm is a form within a form.To create an html view with SubForm records.To execute tasks on user input of SubForm fields.To execute tasks when a row is added or deleted in the SubForm.Set Default Entries and Limit Maximum Entries.Creating relationship between MainForm and SubForm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |