ADF Desckop Integration

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();

}

}