OAF的资料太少了,这个比较适合新
1.Sql:LV为级别
2.创建VO
3.创建View Link
4.创建AM
5.创建Page
Destination URI=
OA.jsp?page=/oracle/apps/cux/cdm/onhand/webui/TreeCenterPG&invName={@Invname}&OAPLRS=PLNH
Ancestor Node= /oracle/apps/cux/cdm/onhand/webui/TreeLeftPG.TreeGN
View Link Accessor的值从View Link的XML文件里取。取值为ViewLinkDefEnd节点的Name属性
6.创建CO,在processRequest里写代码
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("initTree");//调用AM.
}
7.在AM里添加代码
public void initTree() {
TreeLeftVOImpl vo = getTreeLeftVO1();
vo.initQuery();
}
8在VO的实现类里添加代码
public void initQuery() {
setWhereClause("LV = '10'");
executeQuery();
}
9.RUN
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24627116/viewspace-763939/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24627116/viewspace-763939/