Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Coloring Items in Value Lists?


This topic is 6938 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I'm trying to learn how to set color attributes in value lists. I have a field called "Actions" that uses a 5 item list: (Out, Resend, Accept, Revise, Withdraw).

Right now I'm setting text attributes manually. I'd like to know if I can auto-format the color of the value list items. Via a calculation?

Note: I'm not a total newbie but I still have a very limited understanding of calculation and summary fields. I can't seem to follow the syntax...

Posted

Hi AAA,

Not sure I get it entirely yet. I think I need to play around with your example, but it is helpful, and so thank you. I may have more questions.... :)

Posted

Another option would be to make the field an auto-enter calc that refers to itself. Try something like:

Case ( field = "A" ; TextColor ( field ; RGB ( 255 ; 0 ; 0 ));



field = "B" ; TextColor ( field ; RGB ( 0 ; 255 ; 0 )) ;



field = "C" ; TextColor ( field ; RGB ( 0 ; 0 ; 255 ))



 )

Make sure that "Do not replace existing ..." is NOT checked for it to update properly.

Posted (edited)

Hi Kent,

This seems like the right solution but I don't understand how the syntax works. I have only one field, called "Actions". Would I place it in "A", "B", "C" regardless?

PS Can either of you recommend a good tutorial on calculation fields? I just don't understand them yet, and there don't seem to books that provide a sufficient explanation. Thanks.

Edited by Guest
Posted

Here's an example of an auto-enter calc that colors the text in the field. See if it makes sense to you.

I think you may also want to color the text in the value list display itself, but I don't believe that's possible. You might want to check in the "Plug-ins" section of this forum to see if anyone's written a plug-in for this.

Good references for learning calculations (and a lot of other good FileMaker related stuff) are:

Using FileMaker 7, Special Edition, ISBN 0-7897-3028-6

FileMaker 7 Bible

Database Pros' website.

A FileMaker Affliction website

FM Forums! :chili:

ColoredText.zip

Posted (edited)

Hi Kent,

Yes, even though I am a programming incompetent I do get the syntax this time! I haven't tried it yet, but I feel certain I can do it. What's more it is elegant (a nice thing for a poet)! Thanks a bunch. You've helped someone be more productive in life. Next time you're in the Toronto area I shall buy you lunch if you so wish...

Charles

P.S. It works!! Thanks again!

Edited by Guest

This topic is 6938 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.