Javier:
Interesting you would bring this up. I just had the exact same problem,
I wanted to change the color of a button on a single row in a scrolling region, alerting the user if there was an order history on file for a specific order.
Interestingly enough, it works if error messages are set ON.
Submitted same to RBTI as a bug, because it can be duplicated in concomp. See below for my report to RBTI and thier reply.
They sort of say... if I read thier explanation right... thats just the way it works, but I still think it is a problem that needs to be addressed.
Perhaps you could just have your client drag the form off the screen... (they say that works.) then it would work right. (HaHa)
My experience though is.. when you enter the row where your property command changes the color, all rows change,
but if you make an exit eep out of the row changing it back, then all rows change accordingly.
Therefore, while it might look kind of funny, it still alerts the user if the row has a history.
Dick Fey
Carpet Broker Inc.
----- Original Message ----- From: Javier Valencia
To: RBG7-L Mailing List
Sent: Thursday, November 18, 2004 2:25 AM
Subject: [RBG7-L] - Need ideas for a form..
A client wants to display a list of records from a table on a form using either a grid or a scrolling region; one of the columns is the status. The form needs to display the rows with status 'O' in a different color (either the text or the background) so it will stand out.
I have tried using a scrolling region with a red box on the row background with a component id "vci_box" and the following EEP on row entry:
IF vfwo_stat = 'O' THEN
PROPERTY vci_box VISIBLE 'TRUE'
ELSE
PROPERTY vci_box VISIBLE 'FALSE'
ENDIF
RETURN
The only problem is that whenever I enter a row with the status 'O' the background for all rows turn visible (red) and when I move to a row with a status 'C' the background for all rows turns invisible.
I tried using a Rich Text field with a color font but scrolling regions do not allow Rich Text columns and grids display only an icon.
I am also trying using a varbit image but so far I am having problems getting the image to display in the scrolling region.
I imagine that there is an easy way to accomplish this but right now I cannot think of any. Any ideas, suggestions would be greatly appreciated.
Javier,
Javier Valencia, PE
President
From : Dick Fey
Subject: My Rbase mystery of the day
I am using property commands, called by an on row entry eep in a scrolling region to
1. Change the color of the customer field in the focused row
2. Check the order history, and if one exists, change the color of a
history push button to alert user of a history file for the focus row.
Code goes like this
SET VAR vHisChk Integer = 0
SET VAR vHisChk = Refnum in OrdHistory where Refnum = .Vrefnum
IF vHisChk = .Vrefnum THEN
PROPERTY idHisory FONT_COLOR 'RED'
PROPERTY idCusname FONT_COLOR 'RED'
RETURN
ENDIF
PROPERTY idHistory FONT_COLOR 'BLACK'
PROPERTY idCusname FONT_COLOR 'RED'
RETURNThen I use an on close eep to set everything back to normal.
What happens is this:
If NO history exists, Customer field changes to RED as expected,
ONLY in the focused row. (That
is what I wanted)
History button remains black
However:
If a history DOES exist, Customer field changes to RED in EVERY row
History button changes to RED in
EVERY rowAt first I thought that the cusname being a field, while the history button is a variable,
might cause it. But it works perfectly on the single row if there is no history.
So if this theory is correct, why does it change ALL rows if there is a history.
This makes no sense to me. I must be doing something wrong.
Any ideas?
Dick Fey Carpet Broker Inc.
RBTI's REPLY...
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: "Dick Fey" <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 2:25 PM
Subject: Concerning Bug #71776
Dear Dick Fey,
This is not a bug.
Whenever an error message occurs on a form, the text in the fields are not repainting completely for inactive tiers.
If you would take the form and drag it out of screen and back, you will notice that the font color has changed correctly.
We thank you for your feedback.
RBG7 R:DCC Staff. =================
