Good example using XML Publisher with a rowset

3.9k Views Asked by At

Does anyone know of a good example of an Application Engine program creating a rowset and then calling XML Publisher to create a report?

PeopleTools 8.49

Thanks in advance.

1

There are 1 best solutions below

0
On

Providing you've got your report defn, data source and template setup, here's the peoplecode to do it:

/* 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);