#1 2015-04-24 03:53:06

marcosfilho
Member
Registered: 2014-08-04

PREVIEW error -error dynamic list using script datasource

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

#2 2015-05-05 08:17:14

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: PREVIEW error -error dynamic list using script datasource

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

#3 2015-05-11 23:48:30

marcosfilho
Member
Registered: 2014-08-04

Re: PREVIEW error -error dynamic list using script datasource

Hi Arno,

No problem. Thanks for replying. I'll raise a ticket. thanks.

Offline

#4 2015-05-11 23:49:49

marcosfilho
Member
Registered: 2014-08-04

Re: PREVIEW error -error dynamic list using script datasource

btw, Im using the latest version RS2.2.2-5639

Offline

#5 2015-05-12 23:46:49

marcosfilho
Member
Registered: 2014-08-04

Re: PREVIEW error -error dynamic list using script datasource

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

Board footer

Powered by FluxBB