OAF的TABLE中的LOV依赖

OAF TABLE中的LOV依赖

经常在一个页面中出现在一个table展示过程中,对其中的一列(LOV)进行修改,此LOV依赖于另一列(lov或text)

效果

在这里插入图片描述

结构图

在这里插入图片描述

  • DepartmentVO和EmpVO为两列LOV的VO
  • DeptLovRN.xml和EmpLovRN.xml是外部LOV的Region
  • TableVO为最终显示页中的VO

效果图

在这里插入图片描述

相关代码

DepartmentVO

SELECT deptno,dname,loc FROM dept

EmpVO

SELECT e.deptno, e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm
  FROM emp e

TableVO

select * from emp_all

DeptLovRN.xml
DeptLovRN.xml
Region Items
EmpLovRN.xml
EmpLovRN.xml
在这里插入图片描述
Region Items
EmployeeAM
EmployeeAM

MainCO

    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
        super.processRequest(pageContext, webBean);
        //init VO
        OAApplicationModule am = pageContext.getApplicationModule(webBean);
        OAViewObjectImpl vo = (OAViewObjectImpl)am.findViewObject("TableVO");
        if (!vo.isExecuted()) {
            vo.executeQuery();
        }
    }

MainPG.xml
MainPG.xml

ID Property Name Value
DeptName_LR External LOV /oracle/apps/cux/study/employee/lov/webui/DeptLovRN
DeptNameMap LOV Region Item Dname_LOV
Return Item DeptName_LR
Criteria Item DeptName_LR
Required False
Programmatic Query False
DeptNoMap LOV Region Item Deptno_LOV
Return Item DeptNoFV_LR
Criteria Item
Required False
Programmatic Query False
EmpName_LR External LOV /oracle/apps/cux/study/employee/lov/webui/EmpLovRN
EmpNameMap LOV Region Item Ename_LOV
Return Item EmpName_LR
Criteria Item EmpName_LR
Required False
Programmatic Query True
DeptNoEmpMap LOV Region Item Deptno_LOV
Return Item
Criteria Item DeptNoFV_LR
Required True
Programmatic Query False
JobMap LOV Region Item Job_LOV
Return Item Job
Criteria Item
Required False
Programmatic Query False
SalMap LOV Region Item Sal_LOV
Return Item Sal
Criteria Item
Required False
Programmatic Query False

DeptNoFV_LR的创建方法
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_39338752/article/details/88583537