Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Copper Elite Contributor
Posts: 47
Registered: ‎04-26-2009

Launch a custom report in 8.0

Can't seem to get a custom report to populate in the web report viewer.

The following code displays all the alerts, the record id is correct, the reportname is correct.

The report loads in the viewer but does not populate with data.

Am I missing any steps?

 

 

var contextSvc = Sage.Services.getService('ClientEntityContext');
var context = contextSvc.getContext();
var QuoteId = context.EntityId;
alert('Quote Id: ' + QuoteId);
showReport(ReportName,QuoteId);


function showReport(ReportName,QuoteId){
alert('show Report ' + ReportName + ' ' + QuoteId);
require(['Sage/Reporting/Service'], function (Service) {
var oReporting = Sage.Services.getService('ReportingService');
if (oReporting) {
alert('before report');
oReporting.showReport(ReportName,'TA_QUOTESIRR',QuoteId);
alert('after report');

return true;
}
else {
alert('Reporting Service not available');
return false;
}
});
}

 

Employee
Posts: 629
Registered: ‎04-24-2009

Re: Launch a custom report in 8.0

Has the table TA_QUOTESIRR been added and linked in the report?

 

Thanks

 

Mike

Copper Elite Contributor
Posts: 47
Registered: ‎04-26-2009

Re: Launch a custom report in 8.0

Yes -  these reports work already in the LAN client. It's working perfectly now for some reason.