ViewerType - property of the PmaPanel object
Values:
1 - The window is opened in the application.
2 - The window is opened in the Web browser.
Note:
Property access for
read only.
This property can be read only in the
Pmg object event scripts. By this property it is possible to conditionally run different algorithms in the application and in the Web browser. It has sense only if the panel is used locally in the application and also for the Web as
Web panels (i.e. if the Web sharing is enabled on the "
Web server" tab).
Example:
JavaScriptVBScriptSelect and copy to clipboard
if (pMe.PmPanel.ViewerType == 1)
{
// algorithm for local panel
}
else
{
// algorithm for the Web
}
If pMe.PmPanel.ViewerType = 1 Then
' algorithm for local panel
Else
' algorithm for the Web
End If