I've been away for sometime so greetings to all at the best FM group on the
net. I've got a field containing numerical values ranging from -3 to +3 and
a want to set the text colour according to these values - red for -3 ranging
through to green for +3. Is there any way of achieving this. I run a script
to sort them by the value in this field so I can attach further lines to
this script or run a sub-script. All advice appreciated.
Regards, David
|
|
0
|
|
|
|
Reply
|
David
|
2/29/2004 11:39:12 AM |
|
It is said that what you describe will be scriptable in FileMaker 7 later
this year. At present, it is a bit more complicated (without knowing what
the scripting will look like).
You have your field Value.
Define several calculation fields:
ValueMinus = If (Value < 0, Value, "")
ValueZero = If (Value = 0, Value, "")
ValuePlus = If (Value > 0, Value, "")
Place the three fields on your layout, identical in all formatting except
color, with transparent fill. Set each to the color of your choice (e.g.,
red for ValueMinus, black for ValueZero, green for ValuePlus. Align them on
top of each other and group them for easy positioning.
This method is obviously best suited for display (the Value field need not
even be on this layout). If you really want this to be the input layout as
well, put Value (again, identically formatted) behind the other three, and
use tabbing or a Go To Field step in a script to get into it for entry.
If you didn't want the three calculation fields, you could make them glabals
and, but you would have to use scripting to set and reset each according to
Value.
Matt
in article 4ck0c.7081$RB.4587@newsfe2-gui.server.ntli.net, David Price at
brynymor@ntlworld.com wrote on 2/29/04 6:39 AM:
> I've been away for sometime so greetings to all at the best FM group on the
> net. I've got a field containing numerical values ranging from -3 to +3 and
> a want to set the text colour according to these values - red for -3 ranging
> through to green for +3. Is there any way of achieving this. I run a script
> to sort them by the value in this field so I can attach further lines to
> this script or run a sub-script. All advice appreciated.
>
> Regards, David
>
>
>
|
|
0
|
|
|
|
Reply
|
Matt
|
2/29/2004 12:43:34 PM
|
|
Matt Wills <I'm@witz.end> wrote in message news:<BC6748A3.20C%I'm@witz.end>...
> Place the three fields on your layout, identical in all formatting except
> color, with transparent fill. Set each to the color of your choice (e.g.,
> red for ValueMinus, black for ValueZero, green for ValuePlus. Align them on
> top of each other and group them for easy positioning.
I tend to use a coherent string of 3 mergefields instead of the
layering approach Matt suggests, a trick to remember is just the first
"<" needs to carry each formatting.
Another issue is that if you're to show values that somehow have lost
their ability to be stored, say a portal line figure showing a pull of
a certain item deducted via a relation, could such freshing of
unstored values make a invoice/contract tiresom to watch building up.
Some kind of relookup mechanism could be instated by the entry of the
pull value ...bearing in mind that the colour shown is then FIFO...
--sd
|
|
0
|
|
|
|
Reply
|
sdyhr
|
2/29/2004 8:58:04 PM
|
|
|
2 Replies
192 Views
(page loaded in 0.041 seconds)
Similiar Articles: Setting field values and locking fields in iText - comp.text.pdf ...I'm looking at iText (1.02b) to see if I can use it for taking an existing "open" PDF document, read it in, set one or more field values, "lock" speci... Append text to existing field on Update - comp.databases.btrieve ...I'm trying to append new text on a field using the concat function. On the Set statement I use ... options would update when I add new values to the the field ... set variable value base on text file - comp.unix.shell... by /^mailcc=/ and iterate over the fields, and substitute each field by ... Dynamically set variable name and value - comp.soft-sys.math ... set variable value base on text ... updating a value list in a checkbox field - comp.databases ...I've set up a field "category". I've set up a value list "category" and defined it to use all val... ... A normal text field set up to act like a rollover button would do the ... Set JComboBox 's JTextField into JFormattedTextField, how? - comp ...} public void setItem(Object value) { field.setValue(value ... JTextField - how to disable selecting text in this component ... Set JComboBox 's ... Programmatically change the name of a field - comp.text.pdf ...Change field font color wjen past due - comp.databases.filemaker ... Programmatically change the name of a field - comp.text.pdf ... Latitude and Longitude values for a ... Filemaker 7, portals & set field - comp.databases.filemaker ...Concatenate text from related records? - comp.databases.filemaker ... Filemaker 7, portals & set field - comp.databases ... InfoPath 2010 Set field values of multi checkbox ... Best way to code a true/false checkbox? - comp.databases.filemaker ...Currently I am using the following - A value list called 'Binary' with the values 'True', 'False' - A Text field - On the layout, a checkbox set using the 'Binary' value ... Setting a field value based on a related DB - comp.databases ...Setting field values and locking fields in iText - comp.text.pdf ... Setting a field value ... Related ... how to set the default value for a field when creating a ... Checkbox calculation - comp.databases.filemakerIf you want the check box to be able to be set manually, as well as by using the calculation, you would need to define it as a text field, with the value set ... AS3: Text Fields and Formats - Republic of CodeOnce our text field is created we can set the text to be displayed in it by configuring ... color by simply setting the .textColor property to any color hex decimal value: 7/29/2012 12:15:38 PM
|