cancel
Showing results for 
Search instead for 
Did you mean: 

retrieving data for a report table

Former Member
0 Kudos

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();

Accepted Solutions (0)

Answers (1)

Answers (1)

dan_cuevas
Active Participant
0 Kudos

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:

http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_consumer/doc/wssdk_d...

Hope this helps.

Regards,

Dan