Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
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