普通Region中动态设置poplist的值跟着当前区域的某些值动态变化
2015-06-28 15:23
381 查看
//控件设置 ID Catergory1 Item Style messageChoice Picklist View Definition Cux.oracle.apps.po.poplist.server.ContractCategoryLevel1VO Picklist View Instance Picklist Display Attribute Description Picklist Value Attribute FlexValue Action Type firePartialAction Event category1 ID Catergory2 Item Style messageChoice Picklist View Definition Cux.oracle.apps.po.poplist.server.ContractCategoryLevel2VO Picklist View Instance ContractCategoryLevel2VO1 Picklist Display Attribute Description Picklist Value Attribute FlexValue Action Type firePartialAction Event category2 ID Catergory3 Item Style messageChoice Picklist View Definition Picklist View Instance ContractCategoryLevel3VO1 Picklist Display Attribute DetailCategoryName Picklist Value Attribute DetailCategoryId Action Type firePartialAction Event catergoryAction3 //代码控制 //processFormRequest else if ("category1".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) { am.handSegment2(); } else if ("category2".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) { am.handSegment3(); } //AM public void handSegment2() { ContractHeaderVOImpl vo = this.getContractHeaderVO1(); if (vo != null) { ContractHeaderVORowImpl row = (ContractHeaderVORowImpl)vo.getCurrentRow(); String segement2 = row.getSegment2(); String segement3 = row.getSegment3(); ContractCategoryLevel2VOImpl vo2 = this.getContractCategoryLevel2VO1(); vo2.clearCache(); vo2.setWhereClauseParams(null); vo2.setWhereClause(null); vo2.setWhereClause(" 1=1 and PARENT_FLEX_VALUE_LOW='" + segement2 + "'"); vo2.executeQuery(); ContractCategoryLevel3VOImpl vo3 = this.getContractCategoryLevel3VO1(); vo3.clearCache(); vo3.setWhereClauseParams(null); vo3.setWhereClause(null); vo3.setWhereClause(" 1=2 "); vo3.executeQuery(); } } public void handSegment3() { ContractHeaderVOImpl vo = this.getContractHeaderVO1(); ContractHeaderVORowImpl row = (ContractHeaderVORowImpl)vo.getCurrentRow(); String segement3 = row.getSegment3(); ContractCategoryLevel3VOImpl vo3 = this.getContractCategoryLevel3VO1(); vo3.clearCache(); vo3.setWhereClauseParams(null); vo3.setWhereClause(null); vo3.setWhereClause(" CATEGORY_LEVEL2 = :1 "); vo3.setWhereClauseParam(0, segement3); vo3.executeQuery(); }
相关文章推荐
- 关于SVN服务器的3690端口与centOS的firewall控制
- xiaopanOS启动及字典
- Apache2.4+Tomcat8.0集群安装
- nginx 服务器安装及配置文件详解
- Jetty和tomcat的比较
- maven项目建立pom.xml报无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3
- Senergy.Interactive.Petrophysics.v4.2.2013.275 1CD(交互式测井分析工具)
- Schlumberger Oil Field Manager(OFM) 2012.1-ISO 1CD(油田日常监控和管理软件包)
- Linux集中日志服务器rsyslog
- 根据条件设置poplist的值集
- shell脚本编程常识
- hadoop实战---Hadoop开发过程中遇到的问题和解决方法
- dlopen与dlsym的说明和使用-动态拿到函数地址
- Shell编程——基于IBM培训教程的总结
- Linux进程间通信--进程,信号,管道,消息队列,信号量,共享内存
- 10 个免费的服务器监控工具
- 《鸟哥的Linux私房菜》第四章 安装CentOS 5.x与多重引导小技巧
- Hadoop分布式文件系统:架构和设计要点
- Linux 解决 firefox 中文页面乱码问题
- IDEA、Eclipse的详细安装配置及Tomcat服务集成介绍