![]() ![]()
|
ADD-CALC-COLUMN( ) method
Creates a browse column from the specified properties and returns the handle of the new column. This method can be used only after the browse’s query attribute has been set.
Return type: HANDLE
Applies to: BROWSE widget
datatype-expformat-expinitial-value-explabel-expposwidget-type
An optional character expression specifying the widget type of the column. Valid values are "COMBO-BOX", "DROP-DOWN", "DROP-DOWN-LIST", "FILL-IN" and "TOGGLE-BOX". The default value is "FILL-IN".Ifdatatype-expis not "LOGICAL", specifying "TOGGLE-BOX" as the widget type generates a run-time error.Thewidget-typeparameter is ignored in character mode.The following is an example of adding a column in the browse’s fifth position using this method:
The ADD-CALC-COLUMN( ) method may be used on a static browse as well as on a dynamic browse.
If the browse is already displayed, the REFRESH( ) method should be applied to the browse after columns are added using ADD-CALC-COLUMN( ). This will initially populate the viewport for the calculated column. The ROW-DISPLAY trigger would normally populate the column, but when ADD-CALC-COLUMN is being executed, the ABL calc-column handle is not yet set and, thus, cannot initially populate it.
![]() |
OpenEdge Release 10.2B
|
![]() ![]()
|