pcastagnini
30th July 2003, 21:16
Greetings Everyone !
I am developing an form in Tools to be used in Baan IV C4 with BW.
I need to display the contents of a form according to an condition.
Example: if the result of a sum is positive the result sould be displayed in BLUE ; if the result is negative ti should be displayed in RED.
Can anyone help me ?
Thanks in advance.
Pablo
evertsen
30th July 2003, 21:46
You might be out of luck... see this thread change form field color (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=7283)
pcastagnini
30th July 2003, 22:15
Thanks anyway...
How can I show a graphic element instead ? Like a sign ... ?
evertsen
30th July 2003, 22:41
I'm sure you can but I am not clear on how to do it.
estotz
30th July 2003, 23:19
Haven't done this before, but why not have a RED field and a BLUE field ... total..red total..blue ... but make one or the other invisible depending on the condition?
Only problem is that it may not show up in the place you need it to.
NPRao
30th July 2003, 23:28
How can I show a graphic element instead ? Like a sign ... ?
Just declare a form field which is a display field type.
then assign a ASCII value of the character symbol.
For example-
extern domain zmadm.str3 graph
....
graph = chr$(36)
NPRao
30th July 2003, 23:32
You can use the session - ttstpisotable to get the ASCII codes.
baanfans
27th August 2004, 01:41
Hello all,
Is there any way to show in a form one frame filled with any color. I mean, I am developping one session that it must function in this way: in the form and if the item discount is 20% I want to show one frame with blue color, but if discount is 30% the frame´s color is red and finally is the discount is 40% then frame´s color is yellow. Another posibility is to show one word with the same colours.
Can anybody help me?
Best regards,
Arístides. :D
Felipe_Saavedra
30th August 2004, 18:31
Hi,
One possibility could be to create 3 giff files with the colors you would like to display and then present them based on the values of your display.
To manage the files you could use the seq.read and the create.object functionality, please send me an email if you would like more info.
malutz
31st August 2004, 08:33
Hej,
maybe have a look in this thread that is currently in the Tools Development
http://www.baanboard.com/baanboard/showthread.php?t=16381
It worked fine for me.
mr_suleyman
1st September 2004, 08:50
Hi all ,
According to your aim , you can change print color/font of item
For example , bold / not bold
if tdsls996.date < date.num() then
spool.pr.line = cf$(1) | this is bold condition
else
spool.pr.line = cf$(0) | unbold
endif