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

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

Recommended Posts

Posted

Hello folks, old trick new twist.

I want to color the whole row based on values in C_fieldA, for instance.

I seem to remember, that I need to create global repeating container, paste colors into it, and create C_fieldA calculated container to grab the colors.

Here's what I did:

G_colors is global container with 7 repetitions

value list with 7 different options

Notes is text field formatted for the above value list

C_Notes is calculated container, something like:

Case(Notes=*option 1*, GetRepetition( G_colors , 1),

Notes=*option 2*, GetRepetition( G_colors , 2), etc)

Then I position C_Notes behind the whole row in form view, make the row transparent, and send C_Notes to back. This works just fine in Form View, but in List View only the first record gets colored.

Question: how can I make it work in List View ?

Posted

Rows in Form View?:?

ListView - same as in form view. Just make sure Notes is not empty, or rather define a color for isempty(Notes).

Don't you mean table view? No way there.

Posted

Hmmm, for some reason in the List View it doesn't work for me.

When I'm in Form View and scroll using a rolledex the whole row gets colored properly.

But in List view only the firs record gets colored regardless in which record I set the value.

I know you can't do it in Table view. I'm including the file for easy reference:)

TestColorRecord.zip

Posted

Have a look under "Finding Names" for my sample file in the Samples section of the forum. Its on about page 6 by now. This technique is demo'd there.

There is also coverage of conditional background colour fills in my Handy Bits file.

Posted

Ken, you are absolutely right, making the calc field smaller did make a difference.

Now I have another issue, though. This file is on FileMaker Server, so the Global Container does not persist. I totally forgot about the that fact, so when I close the file and reopen it, the pasted colors are GONE.

Is there a way to implement this on the FileMaker Server?

BTW, Russ, your Name Finder is very nice, thank you!

Posted

Hi BikeBoy,

Close the file on the server, open on a client, then paste the colors. This will certainly work, but before be REALLY carefull that the file is REALLY closed on the server!

Regards,

Ernst.

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