使用带有行集的XML Publisher的好例子

时间:2011-01-07 00:34:36

标签: peoplesoft peoplesoft-app-engine

有没有人知道Application Engine程序创建行集然后调用XML Publisher来创建报告的好例子?

PeopleTools 8.49

提前致谢。

1 个答案:

答案 0 :(得分:1)

为您提供报告定义,数据源和模板设置,以下是最佳人选:

/* get report definition object */ 
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn (&yourRptDefn);
&oRptDefn.Get(); 

/* pass Rowset to the report definition */ 
&oRptDefn.SetRuntimeDataRowset(&yourRowset);

/*generate report*/ 
&oRptDefn.ProcessReport (&yourTmpltID, &yourLangCd, &yourAsOfDate, &yourOutFormat); 

/*publish report */ 
&oRptDefn.PrintOutput(&yourDestinationPath);