Home > Building Your Application > Linking the Employees and D... > Creating an Item
Previous |
Next |
Next, create an item in the Department regions. The item is a select list using the Department list of values.
To create an item:
Under Items, click the Create icon.
For Item Type:
Select Item Type - Select Select List and click Next.
Select List Control Type - Select Select List with Submit and click Next.
This option refreshes the page whenever a change is made to the select list.
For Display Position and Name:
Item Name - Change to P3_DEPARTMENT_ID
.
Sequence - Accept the default, 10.
Region - Select Department (1) 5.
Click Next.
For List of Values:
Named LOV - Select DEPARTMENTS.
Departments appears in the select list because you created it as a shared component, which enables you to use it in other pages.
Null Text - Enter the following:
- No Department Assigned -
Null Value - Enter the following:
-1
Entering a null value makes it easier for you to write your query and to default your value to that entry. In this case, whenever a user selects - No Department Assigned -, the session state for this item is set to -1, and you can use that value in a query.
Click Next.
For Item Attributes, change the Label to Department
and click Next.
For Source:
Default - Enter -1
.
Accept the remaining defaults.
Click Create Item.