by nageswaragunupudi » Wed May 23, 2018 3:44 am
Till the browse is displayed we can refer to them in the order of creation as oBrw:aCols[ n ]. But once the browse is displayed, in other words, during runtime, we should not refer to them like this because user may shuffle the order of the columns as he likes.
During runtime:
oBrw:oCol( <nCreationOrder> ) Eg. oBrw:oCol( 3 ). 3 is the position when the browse is first setup.
oBrw:oCol( <cHeaderName> )
oBrw:<cHeaderName>
If the header name contains spaces or CRLF, we can omit them.
Example: if the Header is "First Name", following are valid:
oBrw:oCol( "FIRST name" )
oBrw:oCol( "firstname" )
oBrw:oCol:firstname.
When there are duplicate names, it is safer to refer them with nCreationOrder.
There can be same header name under different group headers.
We can also refer as:
oBrw:oCol( <groupname>_<headername> )
oBrw:<groupname>_<headername>
Example:
Groups "SALES", "PURCHASES" each having column headers "NORTH","EAST","WEST","SOUTH".
Then we can refer them as:
oBrw:Sales_south
oBrw:purchases_north
Regards
G. N. Rao.
Hyderabad, India