You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

xml publisher

1 reply [Last post]
kittu's picture
User offline. Last seen 9 years 25 weeks ago. Offline
Joined: 03/05/2011
Posts: 7

how to run the generate xmlreport after creating the report definition using application engine.i have writen this but its not generate the report.pls tel me what i missed the code

import PSXP_RPTDEFNMANAGER:*;

Local string &sRptDefn = " USAA";
Local string &sLangCd = "ENG";
Local date &AsOfDate = %Date;
Local string &sOutFormat = "PDF";
Local string &sPrcsServerName;
Local number &prcsInstId;

Local PSXP_RPTDEFNMANAGER:ReportDefn &oRptDefn;
&oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&sRptDefn);
&oRptDefn.Get();
&oRptDefn.ProcessReport("myTemplate", "", %Date, "PDF");
&oRptDefn.Publish(&sPrcsServerName, "", &sFolder, &prcsInstId);

psoft-user's picture
User offline. Last seen 9 years 29 weeks ago. Offline
Joined: 03/25/2011
Posts: 4
Re: xml publisher

Try code below:
You missed some code.

&sRptDefn1 = "Report name";
&sTemplateId1 = "Template name";

&dtAsOfDate1 = %Date;
&oRptDefn1 = create PSXP_RPTDEFNMANAGER:ReportDefn(&sRptDefn1);
&oRptDefn1.Get();
&oRptDefn1.SetRuntimeDataXMLFile(&sFileNameGrand);
&oRptDefn1.ProcessReport(&sTemplateId1, &LanguageCd, &dtAsOfDate1, "");
&oRptDefn1.Publish("", "", "", Process Instance ID);
&sFileExt1 = GetFileExtension(&sOutputFormat);