Page 1 of 1

Variable - Show Item Value Not Key

Posted: Sun Mar 19, 2017 4:01 am
by hoopega
How do can I show a Variable Items Value rather than the Key.

In the Expression Editor of a text component I have the expression {Expired} where Expired is the name of the Variable.

The Variable is set up As String Value with Items

Key 1
Value Show All

Key 0
Value Show Expired in Date Range Only

The Report is returning 1 OR 0 but I want it to return Show All OR Show Expired in Date Range Only dependent on the user selected variable.

Thanks

Re: Variable - Show Item Value Not Key

Posted: Mon Mar 20, 2017 12:11 pm
by HighAley
Hello.

You could try to use next expression:

Code: Select all

{Expired==1?"Show All":"Show Expired in Date Range Only"}
Thank you.

Re: Variable - Show Item Value Not Key

Posted: Tue Mar 28, 2017 6:44 am
by hoopega
Great thanks - That Works

Re: Variable - Show Item Value Not Key

Posted: Tue Mar 28, 2017 7:41 am
by HighAley
Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.