Create a static or dynamic list of values (LOV) at the application-level which can be referenced by page items or report fields.
Tip:
To learn about defining a column as a list of values, see the “Defining a Column as a List of Values” discussion under the report type in "Developing Reports"
See Also:
Parent topic: Managing Shared Components
A list of values (LOV) is a static or dynamic definition used to display a specific type page item.
A LOV can be static, meaning it is based on values the user enters or dynamic, meaning it is based on a SQL query. A LOV can be referenced by page items such popup lists of values, a select list, a check box, a radio group, or multiple select lists.
By creating a list of values at the application-level, you are creating shared component. Creating a LOV as a shared component has several advantages:
You can add it to any page within an application.
All LOV definitions are stored in one location, making them easy to locate and update.
Parent topic: Creating Lists of Values at the Application-Level
You define named (or shared) LOVs at the application-level by running the Create LOV Wizard and adding them to the List of Values repository.
To create a named LOV:
Parent topic: Creating Lists of Values at the Application-Level
Static LOVs are based on a static list of display values and return values you specify when you run the Create LOV Wizard.
To create a static LOV, run the Create LOV Wizard and select the LOV type Static. Oracle Application Express stores the display values, return values, and sort sequence you specify in the List of Values repository. Once you add a static LOV to the repository, you can create an item and display it as a check box, radio group, select list, or popup list based on this definition.
Parent topic: Creating Lists of Values at the Application-Level
To edit an existing LOV, select the LOV on the Lists of Values page.
You can edit the display values of all static LOVs by clicking the Grid Edit button on the Edit List of Values page.
To perform a bulk edit of static LOVs:
Parent topic: Editing an Existing LOV
You can reference session state in an LOV by using bind variables.
Keep in mind that referencing session state makes an LOV a bit less reusable, but is still a recommended development practice. In the following example, this LOV only works if the item called my_deptno
contains a valid department number.
SELECT ename, empno FROM emp WHERE deptno = :P1_DEPTNO
Parent topic: Creating Lists of Values at the Application-Level
Access LOV reports by selecting a report on the List of Values page.
To access LOV reports:
Parent topic: Creating Lists of Values at the Application-Level