Page 1 of 2

Re: How do I know the field name in xbrowse:column

Posted: Sun Dec 17, 2023 5:35 pm
by dutch
Dear Mst.Rao and Maurizio,
I got another problem for ::nFreeze. If you scroll to right until the column hide under freeze, the :cExpr will show incorrected.
Maurizio wrote:I use

cField := oBrw:aCols[oBrw:nColSel]:cExpr

Maurizio

Re: How do I know the field name in xbrowse:column

Posted: Mon Dec 18, 2023 2:13 pm
by Maurizio
I don't know if this is correct but you can try with :nColOffSet

Code: Select all | Expand

 oBrw:bLDblClick := <|| 
           Local  n := oBrw:nColSel
           if oBrw:nColOffSet >  1
              n+= oBrw:nColOffSet - 1 
           endif 
           ? oBrw:aCols[n]:cExpr
           Return nil 
         }
Maurizio

Re: How do I know the field name in xbrowse:column

Posted: Mon Dec 18, 2023 3:45 pm
by dutch
Dear Maurizio,

It's work correct, thanks.
Maurizio wrote:I don't know if this is correct but you can try with :nColOffSet

Code: Select all | Expand

 oBrw:bLDblClick := <|| 
           Local  n := oBrw:nColSel
           if oBrw:nColOffSet >  1
              n+= oBrw:nColOffSet - 1 
           endif 
           ? oBrw:aCols[n]:cExpr
           Return nil 
         }
Maurizio

Re: How do I know the field name in xbrowse:column

Posted: Mon Dec 18, 2023 4:45 pm
by nageswaragunupudi
dutch wrote:Dear Mst.Rao and Maurizio,
I got another problem for ::nFreeze. If you scroll to right until the column hide under freeze, the :cExpr will show incorrected.
Maurizio wrote:I use

cField := oBrw:aCols[oBrw:nColSel]:cExpr

Maurizio
Try

Code: Select all | Expand

cField := oBrw:SelectedCol():cExpr

Re: How do I know the field name in xbrowse:column

Posted: Tue Dec 19, 2023 6:20 pm
by dutch
nageswaragunupudi wrote:
dutch wrote:Dear Mst.Rao and Maurizio,
I got another problem for ::nFreeze. If you scroll to right until the column hide under freeze, the :cExpr will show incorrected.
Maurizio wrote:I use

cField := oBrw:aCols[oBrw:nColSel]:cExpr

Maurizio
Dear Master,

It works correctly. Thx.

Try

Code: Select all | Expand

cField := oBrw:SelectedCol():cExpr