xBrowse fieldname

xBrowse fieldname

Postby Maurizio » Thu Oct 14, 2010 10:41 am

Hello ,

Is it possible in xBrowse have the field name ( not the cHeader) of the column when i click on the header ?

Regards Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: xBrowse fieldname

Postby James Bott » Thu Oct 14, 2010 2:34 pm

Maurizio,

The problem is that the data in the column may, or may not, be a field. Only a codeblock is stored in bStrData.

You could try adding the fieldname (in a codeblock) to either bLClickHeader of bRClickHeader. E.G.:

oBrw:aCols:[3]:bLClickHeader:= {|| "Address" }

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: xBrowse fieldname

Postby Gale FORd » Thu Oct 14, 2010 3:59 pm

Add it to the column's cargo.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: xBrowse fieldname

Postby nageswaragunupudi » Tue Oct 19, 2010 10:40 am

if we create xbrowse with COLUMNS clause, in the recent versions of xbrowse, oCol:cExpr stores the expression.

Example:
Code: Select all  Expand view
@ 0,0 XBROWSE oBrw OF oWnd COLUMNS 'CITY', 'SALARY', 'SALARY/AGE' ALIAS 'CUSTOMER'

In this case
oBrw:aCols[1]:cExpr := 'CITY'
oBrw:aCols[2]:cExpr := 'SALARY'
oBrw:aCols[3]:cExpr := 'SALARY/AGE'
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10630
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests