This section describes how to create an entry list that enables the runtime user to choose a buyer from a list instead of entering a buyer ID number. It covers how to:
Change the control type to a control that supports entry lists
Define a static entry list for the control
Change the control type:
Open the SalesOrderByBuyer model if it is not already open.
On the Layout board, right-click the Buyer ID field, and choose
from the context menu. The control changes to a dropdown list.Create an entry list:
Right-click the Buyer ID field, and choose Entry List from the context menu. The Entry List Wizard opens.
Enter a name for the entry list, choose the Static option, and click Next.
Use the (Add Row) button to enter the following items in the entry list:
Value |
Display Text |
---|---|
8 |
Maria Brown |
9 |
Saskia Sommer |
10 |
Bob Buyer |
11 |
Bart Koenig |
12 |
Yoko Nakamura |
13 |
Sophie Ribery |
14 |
Victor Sanchez |
15 |
Jorge Velez |
16 |
Franklin Jones |
17 |
Joseph Gschwandtner |
Click Finish.
Save, deploy, and view the application:
Deploy the model and run the application.
In the runtime application, note that you can select a buyer name from the Buyer ID dropdown list, instead of typing a buyer ID number. The Buyer ID dropdown list should look similar to this:
(Define Buyer Entry List)
You have now created an entry list for the Buyer ID field. In the next section, Checking That a Field Value Is Entered, you will define a validation rule for the Buyer ID field.