Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Opening the viewer of WWW pages (/#glob/webbrowser)

The viewer of general WWW pages is opened by by the Pm.CreateView method. In the parameter sViewPath the global path "/#glob/webbrowser" is entered.
Viewer parameters:
url(String) The URL address of the web page defined in full syntax including the protocol (http://, https:// or file://).
The viewer parameters are in the form of the PmMap object that is filled from value of the sView parameter (of the KeyVal type) in the Pm.CreateView method.

By filling from the KeyVal value all the parameters are initially stored as string. The content of the PmMap object can be then modified as needed - the items can be modified, added and deleted.

The PmMap object can also contain other embedded PmMap objects (Submap). The PmMap.mapSetSubmapAt method can be used in order to create a new PmMap or make one accessible.

Example1:
Two ways of opening an url address in an independent window
JavaScriptSelect and copy to clipboard

var oCreator = Pm.CreateView(pMe.PmPanel, "/#glob/webbrowser", "url:https://www.promotic.eu", "target:_blank;");
oCreator.Open();
Example2:
or short syntax
JavaScriptSelect and copy to clipboard

Pm.CreateView(pMe.PmPanel, "/#glob/webbrowser", "url:https://www.promotic.eu", "target:_blank;").Open();

History:
Pm9.00.09: Created
PROMOTIC 9.0.9 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice