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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

It is working if we provide below expression in textobject.

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

Thanks.

View solution in original post

10 Replies
Jason_Michaelides
Partner - Master II
Partner - Master II

ClientPlatform()?

Not applicable
Author

Hi jason, thanks for your reply.

i didn't get what is client platform ?

i think that you are asking about the below details :

using Server version and Ajax Zero Foot Print.

if i am wrong please correct me.

Thanks in advance.

Not applicable
Author

Hi,

It is working if we provide below expression in textobject.

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

Thanks.

Jason_Michaelides
Partner - Master II
Partner - Master II

That was what I was pointing to. Glad you put it into a working expression.

Not applicable
Author

Thanks jason.

After looking in your previous post i.e; ClientPlatform , i tried in different ways then i got final best solution.

Thanks for your idea.

Regards

venkat

Not applicable
Author

Hi jason,

Why ClientPlatform() function is not working Internet Explorer ?

Is there any steps to follow when working in IE browser ?

Thanks in advance.

Jason_Michaelides
Partner - Master II
Partner - Master II

Should work fine.  Is the plugin installed?

Not applicable
Author

Hi,

Yes i had installed IE plugin, but not able to see the function ClientPlatform.

Thanks in advance.

Jason_Michaelides
Partner - Master II
Partner - Master II

What do you mean "not able to see it"? Are you trying to add it in to an object using the web viewer? It's probably only available for use in the desktop client (but will present results in the web)

Jason