GetInfo - method of object PmaObject
Returns the Info object with the specified name.
Object GetInfo(String sName)
oInfo = oObject.GetInfo("data")
|sName||(String) Name of the Info object. Each Pma object can provide more Info objects that just differ by their name.|
The GetInfo method is useful only for providing the Info object into the PmgWTable object in the meantime. This ActiveX object can then display the data from the object automatically, only for the refresh of the visualized data it is necessary to call the PmgWTable.Draw method.
Provided Info objects so far are as follows:
|Pma object: ||Name of the Info object: ||Meaning of the Info object:|
|PmaDatabase ||"data" ||provides the data table contained in the database to which this object is bound|
|PmaDataTable ||"data" ||provides the data table that is in this object|
It is necessary to bind the data in the Pma
with the PmgWTable
object. In the panel, on the "Methods
" page, a user method named GetDataInfo
is created. This method contains the following script:
In the initialization of the Pmg
object (in the onStart
event) is the following script: Thus the PmgWTable
object is by the FillFromInfo
method filled up by the information about the object "/Data/MyData1"
and the parameter "bind"
specifies that this binding has to be kept all the time of the visualization. Now it is enough for example in the onRefresh
event of this object to call only the Draw
method that finds out new values from the Info object and displays them on the screen in the Pmg
var aDataInfo = pMe.PmPanel.Methods.GetDataInfo();