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 2019-08-09 11:25:23

Patryx
Member
Registered: 2019-03-25

Problem with parameter which depends on different parameter

Hi,
I will write scenario as an example to explain the problem:
I create dynamic list report. I add parameter P_USER_ID as text parameter. I mark this parameter as Editable, Mandatory and HIDDEN (this is important). I also add Default value as '468edf32-9006-477e-ae54-52e9a8d2fc44' and save.
I create another parameter P_UNITS as datasource parameter with multiselect options. I mark this parameter as Editable. I add parameter P_USER_ID as "Depends on:".
Then I connect to my datasource with query:
SELECT d.value,
       d.display
FROM units_dict d
WHERE  d.user_id::TEXT = $P{P_USER_ID}
I test this by clicking EXECUTE in parameter configuration - Great, it works and show me units filtered by user_id.
Then I save this parameter.
I go to report and do Eexecute to see Report Execution View. I open Parameters tab, click the parameter P_UNITS and...there is no data.
If I dismark Hidden from parameter P_USER_ID  and do report execute, it works perfect. I can see units filtered.

I did a test and open such a report from URL. The problem was the same. But when I add in url '&p_P_USER_ID=468edf32-9006-477e-ae54-52e9a8d2fc44' it stared to work.
As conclusion there is a problem when parameter on which other is depended is hidden - I suppose you do not refresh value of hidden parameter to get the default one, so that's why it doesn't work.

Offline

#2 2019-08-22 10:16:19

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Problem with parameter which depends on different parameter

Hi Patryx,

I raised ticket RS-3641 for this.

Regards,
Eduardo

Offline

#3 2019-08-23 09:51:45

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Problem with parameter which depends on different parameter

Hi Patryx,

thanks for the detailed error description.
I see the problem you mention. I will write here when I have more information.

Regards,
Eduardo

Offline

#4 2019-08-23 14:01:17

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Problem with parameter which depends on different parameter

Hi Patryx,

this is corrected and will be fixed in 3.1.0.

Regards,
Eduardo

Offline

#5 2019-10-02 15:51:33

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Problem with parameter which depends on different parameter

Hi Patryx,

this was fixed in 3.1.0.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB