#1 2017-03-03 08:47:35

skosmas
Member
Registered: 2017-02-16

Script Parameter

I want a report parameter to get its value from a script (script parameter). For that reason I have created a script that simply returns a value.
The returned value is displayed in the parameter tab but I get the following default error in the preview tab:
"Error: An error occurred during report execution.
The report could not be executed: net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorRuntimeException"


I think the report is executed without first waiting to get the value from the script.

If I set a default value for the script parameter, then everything works normally.

What am I doing wrong?

Edit:In the report error I saw the following
"org.eclipse.birt.report.engine.api.impl.ParameterValidationException: Required parameter custID is blank."

custID is the script parameter

Last edited by skosmas (2017-03-03 09:03:40)

Offline

#2 2017-03-03 13:50:35

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Script Parameter

Hi skosmas,

could you please post the script of the script parameter?

"a script that simply returns a value" -> Do you have implemented the javascript methods expected? More details here:  https://reportserver.net/en/guides/admi … er-script/

Cheers,
Eduardo

Offline

#3 2017-03-03 14:45:34

skosmas
Member
Registered: 2017-02-16

Re: Script Parameter

The script contained only "return 1502" but as I see in the link you provided this was the wrong way to do it.

Offline

Board footer

Powered by FluxBB