-
Create a Static List of Values that
displays the primary categories in the table, such as the department
number, that will control the second list of values.
For example, create a list of values called LOV_DEPT with a combobox
format. Use the following SQL statement:
select dname, deptno from scott.dept
-
Create a Dynamic List of Values that
displays the items within the categories displayed in the LOV you
just created, such as employee names.
Note: Make
sure the same application owns both these LOVs, and that both LOVs
use the same schema.
For example, create a dynamic list of values called LOV_DEPTNO_EMP
with a combobox format. Use the following SQL statement:
select ENAME, EMPNO
from SCOTT.EMP where deptno = :dept
-
Create a form (any type of form) based on the same schema as the two LOVs.
-
On the Formatting and Validation Options
tab, in the left pane, click the column name for the column used as a
bind variable, for example DEPTNO.
-
From the Item Type drop-down
list, choose the display method for the LOV.
-
Make any other adjustments to the appearance of the LOV.
-
From the List of Values
drop-down list, choose the static LOV, for example LOV_DEPT.
-
In the left pane, click the column name for the column that contains
the information you want to display in the second LOV.
-
From the Item Type drop-down
list, choose the display method for the LOV.
-
Make any other adjustments to the appearance of the LOV.
-
From the List of Values drop-down
list, choose the dynamic LOV you created, for example LOV_DEPT_EMP.
-
Next to the bind variable (for example, DEPT), choose the column on
which the second LOV is based (for example, DEPTNO).
-
Finish creating the form.
-
Run the form. The two LOVs display on the form. Choose a value from
the static list (such as a department number). The second LOV then
displays the values based on the value you chose.