FillFromInfo - method of object PmTable
Method serves for reading data from general INFO objects
that make Promotic objects accessible for the user by the PmObject.GetInfo
method. Either all data are read into the internal table buffer ("static"
style) or the table stores the reference to the INFO object ("bind"
style), then the INFO object is asked only for a part of the current data on each request to display the data (on scrolling, calling the Draw
method or on the first drawing).
FillFromInfo(Object As Object, Style As String)
oTable.FillFromInfo oObject.GetInfo, "static"
|Object||(Object) Reference to the object of the INFO type that can be get by the PmObject.GetInfo method and from which the data are read.|
|Style||(String) How the data are read from the INFO object. The values are:| "static"
- data from the object are read together and stored into the table on calling this method
- data from the object are read and stored into the table on calling this method and the data read from the INFO object will be refreshed on the next moving in the table or calling the Draw
these objects are supported in PmDatabase
objects, the data can be read from these two objects.
This method is not
functional for Web Panels
Let's have the PmiAx
graphic item in the panel bound with the PmTable
ActiveX object, and the oDb
is the reference to the PmDatabase
Promotic object whose data from the "Temperature" table (with 10000 rows) have to be displayed by the PmTable
ActiveX object. The PmDatabase
object must be in the open state so that it could provide the data by the FillFromInfo
method. It is of "bind"
style, i.e. that not all 10000 rows will be read but only those that have to be currently displayed.
oDb.Table = "Temperature"
oTable.FillFromInfo oDb.GetInfo("data"), "bind"