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

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

Recommended Posts

Posted

I'm trying to create a project management database for my company. I have many records, but two main categories, Active and Inactive. I figured out how to sort those into the two categories, however now I have a problem that you don't visually realize if you are looking at the active or inactive files after using the sort option.

I was hoping to find a way to make that happen, and the easiest way I could think of would be to have another background color. However, as easy as that sounds I can't figure out how to do it. Is there a step I can put in the sort script that would do this? Or ...is this even the best solution to my problem? Simply having a title that says active or inactive would work, though I beleive the color change would be more effective as they will scroll. (the sort option only being available in list mode.) I would have used the <<active/inactive>> title, but when unsorted the title stays.

Up to this point they have gone through and manually changed the colors of the fields that show up on the list mode layout. That way the text looks grayed out on the inactive files. This works, however I beleive an automated solution would be much easier and less time consuming.

Can anyone offer some suggestions? I am kind of new to the FileMaker program as well as the whole database way of thinking. I'm sure that there is a simple solution but for the life of me I just can't figure it out. Any help would be greatly appreciated. Thank you in advance.

Jess

Posted

I assume that you have a field that can define the records as active or inactive since you can sort with that as a criteria.

Create a container field with two repetitions. Copy a Red box into one repetition and a Green box into the other repetition. For the sake of example we'll call the container field "RedGreen".

Use a calculation field with a result that's a container. The calculation would be

If(Field:active/inactive = "active", GetRepetition(RedGreen, 1), GetRepetition(RedGreen, 2))

Set the calculation to "do not store"

The calculation field should now flip from red to green as the active/inactive status changes.

Phil

Posted

Note, you don't need GetRepetition for the first repetition of a field, when calculating a non-repeating field, or a repetition that matches the repetition in the field being calculated, e.g. Set Field [foo, -2, bar] will set the second rep of 2 with the second rep of bar.

So, Case( Field|active = "active", RedGreen, GetRepetition(RedGreen, 2) ) will work as well.

This topic is 7448 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.