Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
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.
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
Hi,
I think there is no trigger to capture the view mode change.
Celambarasan
But when i am opening in server it is still showing as 'desktop view mode' instead of 'Web view mode'.
If not with trigger can you please tell me is there any other way to do that one.
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