Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display text in desktop and server

Hi all,

I am trying to display the text when the application is opened in Server as "opened in server" or in Desktop as "opened in desktop".

i tried below macro code it is working in desktop app but not working in server.

Please can anyone suggest any other way by not using macros can we work on this ?

sub WebView

  set docprop = ActiveDocument.GetProperties

  set v = ActiveDocument.GetVariable("vViewMode")

  if(docprop.UseAjaxUI) then

            v.SetContent "Web view Mode",true

  else

            v.SetContent "Desktop view Mode",true

  end if

End Sub

Thanks in advance.

10 Replies
Not applicable
Author

Hi,

In my current "Desktop" app, taken new textobject in that written expression as below

=if(len(ClientPlatform())>0,'Web','Desktop')

and saves application. And places this app in the server path.

1.) In Desktop app shows result empty(null).

2.) In Chrome shows "browser.chrome"

3.) In Internet Explorer shows result empty(null).

I hope you got clearly what i had done.

Please let me know if any doubt.

Thanks in advance.