In this demonstration, you will learn how to display child object records in the work area of a parent object at runtime.
We will create a subtab in the trouble ticket that displays the records of the Activity child object.
Users will use the Activities subtab to manage activities while resolving the issue in a trouble ticket.
This is the fourth in a series of related demonstrations on creating a child object in Application Composer. These demonstrations cover:
1. Creating a child object
2. Adding a long text field to a child object
3. Adding a fixed choice list field to a child object
4. Adding a subtab to display the child object records
5. Testing the subtab in the runtime application
Steps:
Begin by navigating to the custom object where you want the subtab to appear,Trouble Ticket in our example.
Step 1You want to modify a page, so click the Pages link.
Step 2The Trouble Ticket: Pages page appears.
Step 3In the Subtabs region, click the Create button.
Step 4The Create Subtab page appears.
Step 5Make sure the Child or related object option is selected.
Step 6Click the Next button.
Step 7Select the child object you created earlier.
Step 8
Click the Activity list item.
Step 9Enter a name for the subtab.
In the Display Label field, enter "Activities".
Step 10In the Configure Summary Table region, select the fields that will appear as columns in the table listing all activities created for the trouble ticket.
Step 11Double-click the Activity Name field to select it.
Step 12Now, select the rest of the fields in the same way.
Step 13In the Configure Detail Form region, select the fields that users will use to create an activity.
Step 14Notice that Activity Name is selected for you because it's required.
Step 15Double-click the CreationDate field.
Step 16Now select the rest of the fields.
Step 17Click the Save and Close button.
Step 18This completes the demonstration of creating a subtab to display the records of a child object you created.