DATATABLE
10.5, PLBCMP GUI Only
The DATATABLE object provides the PL/B language a means of loading, storing, and manipulating a table of data that is maintained and referenced using a row and column orientation. The object attributes and behaviors are specified using PL/B properties and methods. To define a DATATABLE, use one of the following statement format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
^
Optional. Denotes the item as being a POINTER.
target
Required. The name of a previously defined data item of the same type.
Flags Affected: NONE
Note the following:
The DATATABLE is supported in CREATE, GETPROP, and SETPROP instructions.
A newly created DATATABLE does not have a user interface to view and perform actions. This allows a PL/B program to create, manage, and maintain one or more DATATABLE objects as virtual tables of data for an application.
A program can bind a DATATABLE to a PL/B HTMLCONTROL object when an application requires an interface. When bound to a HTMLCONTROL, the generation and presentation of the data is through the 'BootStrap 5' framework. More information about 'BootStrap 5' is available at this link:
The COLUMNS collection allows access to the DATATABLE columns using the GETPROP or SETPROP statements. The collection uses the following format:
Where:
The ROWS collection allows direct access to the DATATABLE rows using the GETPROP or SETPROP statements. The collection uses the following format:
Where:
The DATATABLE object supports events that are generated by user interface actions through the bound HTMLCONTROL. The events only take affect after the DATATABLE is bound to a HTMLCONTROL. The EVENTREGISTER statement associates the events to execution lablels.
See Also: Object Definitions, Object Output Instructions
![]() |