You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to restrict executeReport() not to open the report in BUI extension

Accepted answer
54
Views
2
Comments
edited Jul 26, 2017 7:44AM in General Technical Discussions 2 comments

Content

Hi, 

I am developing a BUI workspace extension where I am using IExtensionReport to set filters and retrieve data from a report using setDataHandler and executeReport(). This data would be used for validation in the workspace.

Now, the issue I am facing is when executeReport() is executed, the report also opens up. I would like to NOT open up this report and just retrieve the data.

I am trying to hide the report or close the report. Is this possible?

Any suggestions how this can be done?

Thanks,
Geetha

 

Version

February 2017

Code Snippet

             extensionProvider.registerWorkspaceExtension(function(WorkspaceRecord) {
// custom implemntation
extensionProvider.registerAnalyticsExtension(function(IAnalyticsContext){
IAnalyticsContext.createReport(reportID).then(function(IExtensionReport){
var reportFilters = IExtensionReport.getReportFilters();
var filterList = reportFilters.getFilterList();
filterList[0].setValue(value);
IExtensionReport.setDataHandler(function(reportObj){
//retrieve data
//custom implementation
});IExtensionReport.executeReport();
});
});
}); 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!