1. 首先需要一个pagedef (可以通过创建一个jsff或者jspx来获得)

2. PageDef中的Parameters定义的变量与workbook中的parameter绑定一起

所以,如果需要在VM中传递workbook的参数,就必须在PageDef中的Parameter中定义

ADF Desckop Integration

3. 在excel中绑定的变量,如orgCode需要再PageDef中出现

 

ADF Desckop Integration

4. 定义的methodAction绑定在VM下较好

ADF Desckop Integration

public void filterItemSubExcelVOByQueryFields(Long planId){

ItemSubExcelVOImpl itemSubExcelVO = getItemSubExcel1();

ItemSubExcelSearchVOImpl searchVO = this.getItemSubExcelSearch2();

Row searchRow = searchVO.getCurrentRow();

if(searchRow != null)

{

String OrgCode = null;

if(searchRow.getAttribute("Orgcode") != null)

{

OrgCode = (String)searchRow.getAttribute("Orgcode");

}

itemSubExcelVO.applyViewCriteria(itemSubExcelVO.getViewCriteriaManager().getViewCriteria("ItemSubExcelVOCriteriaWithOrg"));

itemSubExcelVO.setNamedWhereClauseParam("bPlanId", planId);

itemSubExcelVO.setNamedWhereClauseParam("bOrgCode", OrgCode);

itemSubExcelVO.executeQuery();

}

}

相关文章:

  • 2021-06-01
  • 2022-01-03
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2021-12-06
  • 2021-08-27
  • 2022-12-23
  • 2022-03-05
  • 2021-06-28
相关资源
相似解决方案