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: 
bharatkishore
Creator III
Creator III

Server Web View

Hello All,

                       I have this code

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

Its working fine in desktop view. But in server i gave macro code for on activate sheet. But the condition is not satisfying it is stil showing desktop view mode. Can any one please help me that if i open it in server i should get Web view mode.

Regards,

R.Bharat Kishore

2 Replies
bharatkishore
Creator III
Creator III
Author

Hello All,

                    I am still waiting for the reply. Please can anyone tell me how to do.

Is there any other way by not using macros and is it possible to do with expressions. I mean to display whether the application opened in server mode or desktop mode.

Regards,

R.Bharat Kishore

Not applicable

hi,

Just add another triger "Set variable"

vViewMode and set its value to "web view".

Promote it to above your macro.

So, if its desktop view:

first vViewMode= "Web View" will be set through trigger and

just after this macro will run which set vViewMode="Desktop View"

if web view:

first vViewMode= "Web View" will be set through trigger.

No macro will run in this case as macros are disable in web view...

enjoy.....!!!!!

Regards,

Arun Goel