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