生成XML数据源有两种方式。

一种是使用存储过程,返回一个clob作为xml数据源。

另一种是直接使用VO中的数据生成xml数据源。

方法一参考:

Oracle XML Publisher技巧集锦

OAF与XML Pulisher集成

 

方式二:

CO

if ( "PrintDis".equals(l_enent))
    {
      String DistributionId = pageContext.getParameter("DistributionId");
      parameters = new Serializable[] { DistributionId };
      XMLNode xmlNode = (XMLNode) am.invokeMethod("OnlyPrintDis", parameters);
      PrintDisPDF(pageContext, webBean, xmlNode, DistributionId);
    }

AM

public XMLNode OnlyPrintDis(String DistributionId) {
     ChgDisPrintTmpVOImpl vo = getChgDisPrintTmpVO1();
     vo.clearCache();
     vo.initQuery(keyId);
     vo.executeQuery();
     XMLNode xmlNode = 
         ((XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS));
     return xmlNode;
 }

 

相关文章:

  • 2021-10-01
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2022-01-12
  • 2018-06-26
猜你喜欢
  • 2021-10-16
  • 2022-01-18
  • 2021-11-26
  • 2022-12-23
  • 2021-09-04
  • 2021-06-02
  • 2022-12-23
相关资源
相似解决方案