This demonstration shows how to add a dynamic choice list field to an object in Application Composer. A dynamic choice list field contains a list of values that is populated from the actual data of another, related object.
This is the fourth in a series of related demonstrations that use the example of creating a trouble ticket application to illustrate how to create a custom object and the related work area.
These demonstrations cover:
1. Creating a custom object
2. Adding a long text field to an object
3. Adding a fixed choice list field to an object
4. Adding a dynamic choice list field to an object
5. Creating a work area
6. Testing your work area
Steps:
In related demonstrations, we added description and status fields to the trouble ticket.
We will now add a third field, a list of partners that comes directly from the data in your application.
Users will use the field, called Company, to specify which partner is having the issue described in the trouble ticket.
Step 1In the Fields page, click the Create a custom field button.
Step 2The Select Field Type window appears.
Step 3Click the Choice List (Dynamic) option.
Step 4Click the OK button.
Step 5The Create Dynamic Choice List: Basic Information page appears.
Step 6
In the Display Label field, enter the field name users will see.
Enter "Company".
Step 7The application automatically populates the internal name, which must be unique.
Step 8Click the Next button.
Step 9The Create Dynamic Choice List: List of Values page appears.
Step 10
In the List Data Source region, specify the related object that will populate the list.
Click the Related Object list.
Step 11Click the Partner list item.
Step 12Now, select the partner attribute you want displayed in the list.
Click the List Selection Display Value list.
Step 13Scroll down.
Step 14Click the Partner Name list item.
Step 15You could add additional information about each partner to the list using the Additional List Display Values region.
For example, you could display the partner address so that users can distinguish a partner with two separate locations.
Step 16Click the Finish button.
Step 17This completes the demonstration of adding a dynamic choice list field to a trouble ticket object.
In a related demonstration, you will learn how to add this custom field to the trouble ticket's work area. Your users can't view a custom field until you add it.