PreviousNextIndex

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

Syntax
ADD-CALC-COLUMN( datatype-exp , format-exp , initial-value-exp , label-exp     
[ , pos [ , widget-type ] ] ) 

datatype-exp
format-exp
initial-value-exp
label-exp
pos
widget-type

The following is an example of adding a column in the browse’s fifth position using this method:

CalcHnd5 = BrwsHndl:ADD-CALC-COLUMN("char", "AAA-99999", "ORD-37854",          
"OrdNum", 5). 

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
Copyright © 2009 Progress Software Corporation
PreviousNextIndex