Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#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

IF_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