Depend Poplist

You might also like

You are on page 1of 1

Create dependent poplist in advanced table in OAF

Hi All,

Here I am describing how to create dependent poplist in advanced table.

1. Create two poplist say:

A. DeptPoplist – (select * from department)

B. EmpPoplist - This VO will have one bind variable.

(select * from employee where dept_id = :1)

EmpPoplist is dependent on DeptPoplist.

2. Write below code in processRequest method

-- Here we are setting bind variable for child poplist

OAAdvancedTableBean resultTblRN =
(OAAdvancedTableBean)webBean.findChildRecursive("ResultTblRN");
OAMessageChoiceBean EmpPoplist =
(OAMessageChoiceBean)resultTblRN.findChildRecursive("EmpPoplist");
EmpPoplist.setListVOBoundContainerColumn(0, resultTblRN,
"Dept ID column's attribute field ID");

3. Create one transient attribute in VO which will be used in advanced table.


Initially it will be defaulted by true

4. When you will create new row by clicking add new row button. Set true value for
this transient attribute in application module

5. Use this transient attribute in rendered property of EmpPoplist field. Remember


set rendered property for attribute not for column.

NOTE : If you will not set rendered property, you will need to submit the page for
reflecting the changes in EmpPoplist.

You might also like