01-31-2014 07:45 PM
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;
}
});
}
02-06-2014 09:07 AM
Has the table TA_QUOTESIRR been added and linked in the report?
Thanks
Mike
02-11-2014 05:31 AM
Yes - these reports work already in the LAN client. It's working perfectly now for some reason.