Page 1 of 1

xBrowse change record values runtime

Posted: Thu Apr 05, 2018 11:22 am
by dagiayunus
Dear Sir,

I have database Field name LTYPE contain records as below
LTYPE
S
C
W

I want to Display Supplier for S in xbrowse
Client for C
and
Wsale for W records

Thanks & Regards
Yunus

Re: xBrowse change record values runtime

Posted: Thu Apr 05, 2018 11:52 am
by nageswaragunupudi
Set filter to "LTYPE='S'" or 'C' or 'W' for showing Supplier, Client or WSale

Re: xBrowse change record values runtime

Posted: Thu Apr 05, 2018 1:28 pm
by dagiayunus
nageswaragunupudi wrote:Set filter to "LTYPE='S'" or 'C' or 'W' for showing Supplier, Client or WSale
Xbrowse should DISPLAY "Supplier" text instead of "S"


I have sent you screenshot in whatsapp.

Regards
Yunus.

Re: xBrowse change record values runtime

Posted: Thu Apr 05, 2018 1:58 pm
by nageswaragunupudi
Ok.

Code: Select all

WITH OBJECT oBrw:aCols[ i ]   // i is the column number of this column
   :nEditType     := EDIT_LISTBOX
   :aEditListTxt  := { { "C", "Client" }, { "S", "Supplier" }, { "W", "WSale" } }
END
 

Re: xBrowse change record values runtime (SOLVED)

Posted: Thu Apr 05, 2018 2:21 pm
by dagiayunus
Thanks Sir.

it worked.

Regards
Yunus.