Skip to Content
0
Former Member
Sep 26, 2012 at 07:40 AM

DataProvider FlowCount Significance

23 Views

Hello

In the below code, I want to understand significance of dataprovider flowcount.

DocumentInstance docToView = reportEngine.openDocument(reportId);

DataProviders dps = docToView.getDataProviders();

for (int ii = 0; ii < dps.getCount(); ii++) {

com.businessobjects.rebean.wi.DataProvider dp = dps

.getItem(ii);

int recCount = dp.getFlowCount();

try{

for (int iii = 0; iii < recCount; iii++) {

Recordset recordSet = dp.getResult(iii);

It looks like if data provider has multiple recordsets then it will be more than 1.

Also I read somewhere that if Query has more than one flow then getFlowCount() >1 . But I am not sure about this what it means practically.

I am asking this because we are getting exception on accessing second recordset i.e. on calling dp.getResult(1) so is it safe to assume that dp.getResult(0) will give all the required results or are we losing something?

http://scn.sap.com/message/13541383

Thanks!