You are not logged in.
hello guys,
I have a dynamic report what uses a script datasource.
the script returns a RSTableModel (of course) as per the code below:
//this is a part of the code in the MemberhipAndPolicyDataExportForCarriersReport class
public RSTableModel generateReport(){
initializeReport();
createColumnHeaders();
generateMainContent();
generateDataTypes();
generateGrandTotal();
def td = new TableDefinition( headers.toList(), dataTypes.toList() );
def table = new RSTableModel(td);
for(line in this.data) {
table.addDataRow(line)
}
return table
}
// this is the script
MemberhipAndPolicyDataExportForCarriersReport report = new MemberhipAndPolicyDataExportForCarriersReport(memberships, productTypes, parameterMap['group'], parameterMap['asdate'], grandTotalPremium);
report.generateReport()
I can execute the report and export to excel with no errors, however when I try to preview the report, it gives me the following error:
http://postimg.org/image/u5qr8bthx/
if I click on configure list and then click back on preview, I get this:
http://postimg.org/image/k9po8onpx/
note: the results show up in the preview but still get an error.
this error happens only for this report. I have other reports using dynamic list(database datasource though) that preview mode works just fine. So I guess I'm doing something wrong ?
any ideas?
thanks in advance
Offline
Hi Marcos,
sorry, I somehow missed this. Any news on this? If not, we did do some changes to how script datasources are handled internally. So if there is still a problem, please raise a ticket in the support forum and we can give you access to a current build to see if that solves the problem. Which RS version are you currently on?
Cheers
-Arno
Offline
Hi Arno,
No problem. Thanks for replying. I'll raise a ticket. thanks.
Offline
btw, Im using the latest version RS2.2.2-5639
Offline
just for the record, I opened a ticket to reportserver support and they provided me with the current build and it fixed this issue.
thanks guys! you are great
Offline