retrieving data for a report table
This is in reference to the thread
Business Object Reports with Prompts being called from .NET SDK
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();