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

BUI getReportData() not returning data

Accepted answer
25
Views
4
Comments
edited Mar 7, 2019 8:03PM in UI Extensibility 4 comments

Summary

IExtensionReport.getReportData() not returning data

Content

Hi,

I am trying to retreive the total number of rows for a specific report using a BUI extension. However, I keep getting that the total number of rows is 0, even though I see records when I manually run the report. I followed the documentation, and here is the snippet of code that I am using.

Please let me know how I can proceed.

Thanks,

SJ

Code Snippet

ORACLE_SERVICE_CLOUD.extension_loader.load("GetReportData", "1.0").then(function (extensionProvider) {
    var defaultLogger = extensionProvider.getLogger();
   
    extensionProvider.registerAnalyticsExtension(function (IAnalyticsContext) {

        IAnalyticsContext.createReport(100134).then(function (IExtensionReport) {
            defaultLogger.trace(IExtensionReport);
            var iReportData = IExtensionReport.getReportData();
            if (iReportData) {
                console.log(iReportData.getRows());
            }
 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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