OAF_开发系列22_实现OAF条形码BarCode
20150717 Created By BaoXinjian
一、摘要
1
二、锁定统计信息
1
三、删除统计信息
1
Thanks and Regards
public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
super.processRequest(pageContext, webBean);
OAImageBean imgBarCode =
(OAImageBean)webBean.findIndexedChildRecursive("BarCodeImage");
OAStaticStyledTextBean textBean =
(OAStaticStyledTextBean)webBean.findIndexedChildRecursive("BarCodeText");
String sInputString = "1234";
StringBuffer sbSource = new StringBuffer();
//11.5
//"sbSource.append("/servlet/oracle.apps.ap.oie.framework.barcoding.");
//R12
sbSource.append("/OA_HTML/");
sbSource.append("BarCodeImageServlet");
sbSource.append("?input=");
sbSource.append(sInputString);
imgBarCode.setSource(sbSource.toString());
textBean.setText(pageContext, sInputString);
}
把OIE条码相关的Servlet配好了)
添加如下Servlet Mapping:
<servlet>
<servlet-name>BarCodeImageServlet</servlet-name>
<servlet-class>oracle.apps.ap.oie.framework.barcoding.BarCodeImageServlet</servlet-
class>
</servlet>
<servlet-mapping>
<servlet-name>BarCodeImageServlet</servlet-name>
<url-pattern>/BarCodeImageServlet</url-pattern>
</servlet-mapping>
参考: 百度文库
技术交流,技术讨论,欢迎加入
Technology Blog Created By Oracle ERP - 鲍新建