Promotic
WikipediaLinkedInYoutubeTwitterFacebook

OpenView - method of object PmiWFrame

Description:
The method opens the viewer of another object in the PmiWFrame graphic item, the method was called upon.
Syntax:
OpenView(sObjectPath As String, [sOptions As String], [sParams As String], [oExtra As PmMap])
Calling:
oFrame.OpenView sObjectPath, sOptions, sParams, oExtra
Parameters:
sObjectPath(String) Path (relative or absolute) to the object or component whose viewer will be opened.

For detailed description see sObjectPath.

sOptions[optional] (String) The parameters transfered to the viewer. These define where and how to open the viewer.

Entries with assigned value are separated by a semicolon, for example "target:_blank;modal:1;".

For detailed description see sOptions.

This parameter is not being used so far. It is necessary to enter the empty string ("") or not to use it at all.

sParams[optional] (String) Parameters transfered to the object that is to be viewed by the corresponding viewer.

Entries with assigned value are separated by a semicolon, for example "name1:value1;name2:value2;".

For detailed description see sParams.

oExtra[optional] (PmMap) Additional entry of viewer behavior. The items are defined here by creating properties in the PmMap type object (this is a difference compared to previous parameters sOptions and sParams where the entry is added in text form) - this way it is possible to transfer general values (not only text).

For detailed description see oExtra.

Note:
The method can also be called in the graphic item events for Web Panels.
Example:
Opens the panel "../Panel2" in the graphic item PmiWFrame and sets the value of the parameter nmb.
oFrame.OpenView "../Panel2", "", "par:nmb=2;"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice