GetActiveWorkspace - method of the Pm object
The method can return null
pro VBScript and therefore the result should be tested, in order to avoid calling the method over non-existing reference.
The method is often used when working with multiple open workspaces simultaneously (PmaWorkspace
objects), for example when using multiple displays (see How to use a PROMOTIC application on two or more displays
). In this case the method returns PmaWorkspace
, that has been worked on for the last time (i.e. the workspace that has the focus).
This method is not
functional in Web panels
Obtains the reference to active PmaWorkspace
object and opening the "/panel1"
panel in the "main
var oWs = Pm.GetActiveWorkspace();
Pm.CreateView(oWs, "/panel1", "", "target:_blank;").Open();