bgcolour for a single cell in browser

make

Member
Hi,
i want to give a single cell in a browser backgroundcolour.
I have a value , for example 10, and want to find this value in a field. After finding the founded cell should have e new backgroundcolour.
Greets
Make
 

cybvek

New Member
Hi!

Here an example to coloring a browse's cell:

ON ROW-DISPLAY OF brTT_Product IN FRAME {&FRAME-NAME}
DO:
FIND FIRST WT_Selected NO-LOCK
WHERE WT_Selected.Code = TT_Collect.Code
AND WT_Selected.ProdCd = TT_Product.ProdCd
NO-ERROR.
IF AVAILABLE WT_Selected
THEN DO:
ASSIGN TT_Product.ProdCd:FGCOLOR IN BROWSE brTT_Product = 12
TT_Product.FullDesc:FGCOLOR IN BROWSE brTT_Product = 12
TT_Product.Price:FGCOLOR IN BROWSE brTT_Product = 12
.
END.
ELSE DO:
ASSIGN TT_Product.ProdCd:FGCOLOR IN BROWSE brTT_Product = 0
TT_Product.FullDesc:FGCOLOR IN BROWSE brTT_Product = 0
TT_Product.Price:FGCOLOR IN BROWSE brTT_Product = 0
.
END.
END.

Regards,

Viktor

Originally posted by make
Hi,
i want to give a single cell in a browser backgroundcolour.
I have a value , for example 10, and want to find this value in a field. After finding the founded cell should have e new backgroundcolour.
Greets
Make
 
Top