AVEVA OMI Software Developer Kit
Show/Hide Developer Tools

MyViewApp.ViewApp.AllowBrowserTools is an attribute in the ViewApp Namespace. When set to true, DevTools methods connect to underlying logic within the WebControl API to allow users at run time to show and hide the web developer tools built into common web browsers.

Typically, a user can access developer tools via the browser to examine web page structure and functions by pressing the F12 key. The Shift + Ctrl + I key combination also works in some browsers, such as Chrome and Firefox, to activate developer tools. However, this key combination is not recognized by the WebControl API logic; only the F12 key can be used to show/hide developer tools in the web browser.

Setting MyViewApp.ViewApp.AllowBrowserTools to true enables the F12 key at run time to show and hide the developer tools window. The first time a user presses F12, it triggers the ShowDevTools method. The next time the user presses F12, the HideDevTools method is triggered. This functionality is provided automatically, as long as the AllowBrowserTools attribute is true.

See Also