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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

View Mode

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

Macro is not working here. If not with macros please tell me how to do with expressions. I mean i need to display application opened in webview in server and desktop mode in desktop. Please can any one tell me how to do.

Regards,

R.Bharat Kishore

1 Solution

Accepted Solutions
erichshiino
Partner - Master
Partner - Master

Hi,

Instead of macros, you can use fuctions.

A combination of the results of ClientPlatform() and qlikviewversion() should solve your problem as mentioned by Miguel as an aswer to my question here:

http://community.qlik.com/message/107639#107639

You can also try the if statement using this functions here:

http://community.qlik.com/message/207968#207968

Hope this helps,

Erich

View solution in original post

2 Replies
erichshiino
Partner - Master
Partner - Master

Hi,

Instead of macros, you can use fuctions.

A combination of the results of ClientPlatform() and qlikviewversion() should solve your problem as mentioned by Miguel as an aswer to my question here:

http://community.qlik.com/message/107639#107639

You can also try the if statement using this functions here:

http://community.qlik.com/message/207968#207968

Hope this helps,

Erich

bharatkishore
Creator III
Creator III
Author

Thanks a lot Erich. I got my problem solved.

Regards,

R.Bharat Kishore