Hi,
I want to determine in which column someone clicked.
I did this with oBrowse:colpos. This works but when I add the ability to MOVE columns, this won't work anymore. I thought to use the ID clause to determine the ID of a column.
nCol := oBrowse:colpos
oCol:= obrowse:getColumn(nCol)
I expected to use oCol:ID, but this doesn't exist. I can add this to the class, but maybe there is an easier way?
How to get ID of dcbrowsecol?
Re: How to get ID of dcbrowsecol?
Couldn't you just add the column ID in the cargo slot and then query that?
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: How to get ID of dcbrowsecol?
Try this:
Code: Select all
nCol := oBrowse:colpos
oCol:= obrowse:getColumn(nCol)
cID := GetList[AScan(GetList,{|a|a[oGETLIST_OBJECT==oCol}),cGETLIST_ID]
The eXpress train is coming - and it has more cars.
Re: How to get ID of dcbrowsecol?
Hi,
Works perfect.
Code: Select all
cID := GetList[AScan(GetList,{|a|a[oGETLIST_OBJECT]==oCol}),cGETLIST_ID]