how to set the bg color of a cell in a dynamic browse

Posted by Admin on 14-May-2007 08:04

Hey,

i've recently began to use dynamic tables, queries and browsers. Now i'm stuck.

In a program with a dynamic table, query and browser i need to set the background colour of a number of fields depending a condition.

I got the handle of the cell, but i can not set teh background colour.

Progress tells me that the background colour of the cell is not setable.

how can i work around this problem?

the code is used is something like this:

G-hField = G-hBuffer:BUFFER-FIELD (STRING (dipa.matnid)).

G-hField:BUFFER-VALUE = L-dQuant.

IF AVAILABLE artk AND

(NOT artk.swactief OR CAN-FIND (artg WHERE artg.frmaid = artk.frmaid

AND artg.modlid = artk.modlid

AND artg.kwalid = artk.kwalid

AND artg.VAR = artk.VAR

AND artg.klrnid = artk.klrnid

AND artg.mdtpid = "ACTIVE"

AND artg.matnid = dipa.matnid

AND artg.prgkost = 0))

THEN ASSIGN G-hField:BGCOLOR = 12.

All Replies

Posted by OctavioOlguin on 13-Aug-2018 12:10

knowledgebase.progress.com/.../P9248

But that won't be conditional....

Hven't found an option yet (besides to copy temp-table to a uib defined buffer and using a static browse)

This thread is closed