BOXI R2 is my version.
I am trying to schedule reports through the use of the .NET Web Services SDK, but the reports are failing due to missing prompts when I run them. When I view the reports in InfoView, I am prompted for information, and each item has a default value.
However, when I try to retrieve the prompts from these WEBI documents through the SDK, its coming back null.
ResponseHolder biprsp = boxi_bip.Get("path://MyReport", null);
boxi_rpts = biprsp.InfoObjects;
InfoObject iobject = boxi_rpts.InfoObject[0];
Webi rpt = (Webi)iobject;
//
// check the report for prompts
//
WebiProcessingInfo cur_proc_inf = rpt.WebiProcessingInfo;
if (cur_proc_inf == null)
{
System.Console.Out.WriteLine("Report " + rpt.Name + " has no WPI");
}
In the above code, cur_proc_info is always null, even though if I open the report in InfoView, it prompts me for values.
What am I missing?
How Web Intelligence works, you need to open it using ReportEngine and refresh. Then retrieve the prompts and copy it over to the InfoObject. It won't be there otherwise.
Sincerely,
Ted Ueda
That sounds all well and good, but do you have sample code on how to do it? I am looking the API Ref Doc, and it just gives a list of classes and barely any description on what any of those classes do and how to use them.
Attached code (SCN forums have time-limited attachments, so grab them quick)!
It's against XI Release 2.
Sincerely,
Ted Ueda
Hiya Ted,
I've got the same problem - please could you post the sample code again? It has been deleted as you expected.
Cheers,
Jack
The attachment should go now ![]()
Sincerely,
Ted Ueda
Thanks, Ted, but when I try to download it I get a 0K file.
Cheers,
Jack
H Ted,
can you re-post your file?
Thanks,
Louis