Page 1 of 1

How to Hide variable value on manual variable list

Posted: Mon Dec 06, 2021 12:46 pm
by Paranthaman
Hi Andrew,

I have created the variable for drop down list manually. Such as Detailed price and Overall price.

And I have created another variable (read only) for authenticated_user_id.


If authenticated_user_id is empty then show the Overall price else empty on the drop down variable. How to achieve this ?. Please help me.

Here attached the screen shot for your reference.

Re: How to Hide variable value on manual variable list

Posted: Mon Dec 06, 2021 9:37 pm
by Lech Kulikowski
Hello,

How do you use, set the authenticated_user_id variable value?

Thank you.

Re: How to Hide variable value on manual variable list

Posted: Tue Dec 07, 2021 11:53 am
by Paranthaman
Hi Lech Kulikowski,

There are two pages on the report. One is Detailed price and another one is Overall price.
That report is accessed by two URL. One is the desktop and another one is online order.
I get the authenticated_user_id from the online order URL.

I want to show the two pages on desktop version but i want to show only one page (Detailed price page) for online order. How to hide the Overall price page and drop down list value on the report. Please help me.

Re: How to Hide variable value on manual variable list

Posted: Wed Dec 08, 2021 8:48 am
by Lech Kulikowski
Hello,

Unfortunately, it is not possible.

Thank you.

Re: How to Hide variable value on manual variable list

Posted: Thu Dec 09, 2021 12:05 pm
by Paranthaman
Hi Lech Kulikowski,

Thank you for your response.

Another one is, How to add the variable name as a column in the datasource1. and How to put if and else condition for variable in the datasource1 query.

Re: How to Hide variable value on manual variable list

Posted: Thu Dec 09, 2021 9:58 pm
by Lech Kulikowski
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.

Re: How to Hide variable value on manual variable list

Posted: Tue Dec 14, 2021 11:15 am
by Paranthaman
Hi Lech Kulikowski,

I created the variable authenticated_user_id

How can i use that variable as a column in the query

example

Select name, authenticated_user_id
from
table1

Re: How to Hide variable value on manual variable list

Posted: Tue Dec 14, 2021 12:43 pm
by Max Shamanov
Hello,

check the box allow using as SQL parameter, and then in a query use it with @Variable1

Code: Select all

select * from category where categoryId = @Variable1
Thank you.