Hello all!
I've been searching like crazy for something like this and hadn't heard anything, but I'm hoping someone can help me. PeopleSoft 9.1 Campus Solutions, Tools 8.53.
This is what I've done. I'm a web developer by trade, doing Peoplesoft development for the last 18 months, so I still haven't "thought in Peoplesoft" yet.
I have a page with the RunControl SBP that takes one argument: EMPLID. This page, once someone chooses a run control and inputs an EMPLID, feeds my App Engine. Once my App Engine runs, it creates an XMLDoc XML file, based on a specific format because I'm trying to fit the data that I'm pulling into an RTF template form that was created in Word. The XML document is saved on the file system. I then want to, as the next step in my App Engine, use PSXP_RPTDEFNMANAGER to create a report and then display the output to the user in either a PDF or RTF format.
So I have the data source and report definition defined with the appropriate XML and XSD, and this is my code snippet:
&MyReportName = "BV_SR_SOC";
&MyTemplate = "BV_SR_SOC_1";
/* Create Report handler */
Local PSXP_RPTDEFNMANAGER:ReportDefn &oReportDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&MyReportName);
&oReportDefn.Get();
/* Process Report */
&oReportDefn.ProcessReport(&MyTemplate, &LanguageCd, &AsOfDate, &OutFormat);
/* Display the Output */
&oReportDefn.DisplayOutput();
We have another process that does something very similar. You click a button and it runs an app engine with this code and generates a Word document in RTF that pops up for the user.
Here is the error I keep getting:
Data file is required but not specified correctly. (235,2308) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:54096 Statement:1211
I'm completely lost as to what this means, I've looked at several other sites and can't seem to make heads or tails as well as PeopleBooks. Maybe I've missed something, hopefully someone can figure out what I'm doing wrong. Thanks!
--Chris