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-07-24 16:15:26

arbeyg9
Member
Registered: 2017-07-24

NULL Parameters

Hi, im working with input parameters
something like this:

select product_id, product_name from product
where product_id = ${id}

and that goes well

But im trying to get a NULL value from the input, so if i don't write anything on the input, it will shows me everything.

I was trying with something similar to store procedures like this:

where ${id} is NULL or product_id = ${id}

But it doesn't work

What can i do ?

Thanks

Offline

#2 2017-07-25 08:28:59

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: NULL Parameters

Hi arbeyg9,

what exactly isn't working? Do you have an error ?
Take a look here: https://reportserver.net/en/guides/admi … arameters/

You should try with:
$X{EQUAL, column, parameterkey}: If the parameter value is other than NULL, an expression in the form <column> = ? will be generated. If the parameter value is NULL, the generated expression is <column> IS NULL.

Best regards,
Eduardo

Offline

Board footer

Powered by FluxBB