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

Application is opened

Hello All,

                      When ever i opened qlikview application i mean if i open in desktop view the message should display as Application opened in desktop view. Or if i open in webview it should display as application opened in Webview.

                      Can anyone pls help me how to do.

Regards,

R. Bharat Kishore

7 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Call this macro on document open.

sub WebView

set docprop = ActiveDocument.GetProperties

if(docprop.UseAjaxUI) then

          msgbox "Web view Mode"

else

          msgbox "Desktop view Mode"

end if

end sub

Celambarasan

bharatkishore
Creator III
Creator III
Author

Thanks for the reply. But it is displaying in message box. But i want in text object so that it will not go even if i work in application.

                          And if i click on web view it should display as application opened in webview in text object. Please tell me how to do.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Create a variable vViewMode.

Create a text box with =vViewMode

Macro should be

    

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

It should call on document open

Celambarasan

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

         I think there is no trigger to capture the view mode change.

Celambarasan

bharatkishore
Creator III
Creator III
Author

But when i am opening in server it is still showing as 'desktop view mode' instead of 'Web view mode'.

bharatkishore
Creator III
Creator III
Author

If not with trigger can you please tell me is there any other way to do that one.

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