on 09-29-2008 7:45 AM
This is in reference to the thread
I am trying to do the same(i.e I want to retrieve the data for the reports) for a report in table format and I get null pointer exception at myBOView.getContents(). Please find the code below
How to resolve this?
RetrieveData XMLdata = new RetrieveData();
RetrieveXMLView XMLview = new RetrieveXMLView();
XMLdata.setRetrieveView(XMLview);
ViewSupport xmlViewSupport = new ViewSupport();
xmlViewSupport.setOutputFormat(OutputFormatType.XML);
xmlViewSupport.setViewType(ViewType.XML);
xmlViewSupport.setViewMode(ViewModeType.REPORT_PAGE);
RetrieveXMLView retXMLView = new RetrieveXMLView();
retXMLView.setViewSupport(xmlViewSupport);
RetrieveData retBOData = new RetrieveData();
retBOData.setRetrieveView(retXMLView);
Navigate nPage = new NavigateToFirstPage();
Action[] actions = new Action[1];
actions[0] = new Refresh();
RetrieveMustFillInfo retrieveInfo = new RetrieveMustFillInfo();
retrieveInfo.setRetrievePromptsInfo(new RetrievePromptsInfo());
retrieveInfo.setRetrieveQueryContext(new RetrieveQueryContext());
DocumentInformation docInfo = engine.getDocumentInformation("6803", retrieveInfo, null, null, retBOData);
com.businessobjects.dsws.reportengine.XMLView myBOView = (XMLView) docInfo.getView();
Hi Tha,
Does the document you are trying to view contain any prompts?
If so, please kindly refer to the following documention on how to fill in prompts using the Web Service SDK:
Hope this helps.
Regards,
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.