Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all articles
Browse latest Browse all 1701

BO4.1 rebean - How to open report in "ignore refresh on open" mode?

$
0
0

Hello,

 

I'm using report SDK to open Webi reports. In BO 3.1 I used code like this:

 

OpenDocumentParameters param = new OpenDocumentParameters();
param.setIgnoreRefreshOnOpen(true);
DocumentInstance doc = widocRepEngine.openDocument(reportId, param);

but in BO 4.1, I have class IDocumentInstanceManagementService with methods:

 

public IDocumentInstance openDocument(IContext ic, int i);
public IDocumentInstance openDocument(IContext ic, int i, Map<String, String> map);

I think I should use the second method with map, but don't know keys name to set "ignore refresh on open" opening mode.

 

I try use  "ignore refresh on open" opening mode, because when I use first method, it takes very very long (some hours). It is very strange, because when I open this report in Webi it takes 10 seconds...

 

Any ideas?

 

 

EDIT:

 

Finally found solution... In BO4.1 it's "skiprefreshonopen"...

 

Code:

 

Map<String, String> params = new HashMap<String, String>();
params.put("SkipRefreshOnOpen", "true");
IDocumentInstance doc = dimService.openDocument(context, reportObjId, params);

Viewing all articles
Browse latest Browse all 1701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>