xBrowse and Mysql

xBrowse and Mysql

Postby TOTOVIOTTI » Tue Sep 03, 2013 12:14 pm

Mr Nages,
how to in xbrowse:

REDEFINE XBROWSE oBrw ID 100 DATASOURCE oQuery ;
HEADERS "Fecha","Motivo" ;
COLUMNS "FECHA",{|| myfunction(oQuery:CODIGO)} ; //where myfunction is a function external
JUSTIFY AL_CENTER,AL_LEFT ;
COLSIZES 60,200 ;
LINES CELL NOBORDER OF oDlg
oDlg:oClient:=oBrw

It can be done?

Regards
Roberto
Univ@c I.S.I.
Desarrolladores de Software
http://www.elcolegioencasa.edu.ar
User avatar
TOTOVIOTTI
 
Posts: 419
Joined: Fri Feb 05, 2010 11:30 am
Location: San Francisco - Córdoba - Argentina

Re: xBrowse and Mysql

Postby nageswaragunupudi » Wed Sep 04, 2013 7:26 am

Yes.

You can intermix codeblocks in the COLUMNS clause if you are using any recent version of FWH.


If you are using an older version where codeblocks are not allowed, I suggest this workaround.

First specify the COLUMNS CLAUSE with some column name for the second column also.

After that you assign codeblock to the oCol:bEditValue.

Example:
oBrw:aCols[ 2 ]:bEditValue := { || ........your codeblock }
Also assign :cEditPicture if required and assign :cHeader

Alternatively, you can use
ADD TO oBrw DATA (your func) HEADER .... etc
Regards

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

Re: xBrowse and Mysql

Postby TOTOVIOTTI » Fri Sep 06, 2013 11:55 am

Mr. Nages
Thank you very much!
Roberto
Univ@c I.S.I.
Desarrolladores de Software
http://www.elcolegioencasa.edu.ar
User avatar
TOTOVIOTTI
 
Posts: 419
Joined: Fri Feb 05, 2010 11:30 am
Location: San Francisco - Córdoba - Argentina


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests