Adding a Subtab for a Child Object


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:

  1. Begin by navigating to the custom object where you want the subtab to appear,Trouble Ticket in our example.

    Step 1
  2. You want to modify a page, so click the Pages link.

    Step 2
  3. The Trouble Ticket: Pages page appears.

    Step 3
  4. In the Subtabs region, click the Create button.

    Step 4
  5. The Create Subtab page appears.

    Step 5
  6. Make sure the Child or related object option is selected.

    Step 6
  7. Click the Next button.

    Step 7
  8. Select the child object you created earlier.

     

    Step 8
  9. Click the Activity list item.

    Step 9
  10. Enter a name for the subtab.

     

    In the Display Label field, enter "Activities".

    Step 10
  11. In 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 11
  12. Double-click the Activity Name field to select it.

    Step 12
  13. Now, select the rest of the fields in the same way.

    Step 13
  14. In the Configure Detail Form region, select the fields that users will use to create an activity.

    Step 14
  15. Notice that Activity Name is selected for you because it's required.

    Step 15
  16. Double-click the CreationDate field.

    Step 16
  17. Now select the rest of the fields.

    Step 17
  18. Click the Save and Close button.

    Step 18

This completes the demonstration of creating a subtab to display the records of a child object you created.

Table of Contents  Start Topic