Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
is it possible to set a variable in the following way?
=if(visualization=Webview/AJAX,1,0)
My goal is to set the variable equal to 1 if the Webview/AJAX button is selected, else set the variable equal to 0.
Best regards,
Fabio
if(len(clientplatform())>0,1,0)
clientplatform() is empty when using the desktop client in webview mode. It will not be empty if you use AJAX in browser.
Are you trying to set this variable automatically or are you setting this with an action attached to a button? If you are using an action, then you can have a macro that assigns a value to some variable to indicate it's not ajax/webview mode. Macros don't run in ajax/webview.
if(len(clientplatform())>0,1,0)
Hi,
thanks for your answer.
In my Qlikview12 document, the function clientplatform() is always empty, that's why the expression gives me the value 0 as well as when I select the AJAX button.
Do you know why?
Fabio
clientplatform() is empty when using the desktop client in webview mode. It will not be empty if you use AJAX in browser.
Are you trying to set this variable automatically or are you setting this with an action attached to a button? If you are using an action, then you can have a macro that assigns a value to some variable to indicate it's not ajax/webview mode. Macros don't run in ajax/webview.
Hi, thanks for your answer.
I'm going to set this variable automatically.
Regards,
Fabio