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

GetFieldName() in conditional formatting - bug?


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

Recommended Posts

Posted

I am trying to highlight the active field using the new GetFieldName() function:

Get (ActiveFieldTableName) & "::" & Get (ActiveFieldName) = GetFieldName ( Self )

I have the same formula attached to a tooltip. When the field is active, the tooltip returns true - but conditional formatting is not applied. Is this a bug or am I overlooking something?

GetFieldNameBug.fp7.zip

Posted

OK, I think I see what the issue is: it doesn't think it needs to evaluate when active field changes. If I add a bogus condition to the conditional formatting, it wakes up - but it still changes the formatting only on screen refresh, so it's one step behind reality.

Posted (edited)

Thanks, Stephen - that's actually what I did:

http://fmforums.com/forum/showpost.php?post/314863/

I just thought that with this new function it would be possible to do something more interesting.

EDIT:

The file above is not a good example, because conditional formatting is never applied to the active field; you need to duplicate the fields on the layout to see the effect (or lack thereof).

Edited by Guest
Posted

Conditional formatting doesn't apply to active field. That's why you have to use Stephen's example and think "reverse"

Posted (edited)

Yeah, never mind - I was trying something overly ambitious (and wasn't fully awake to boot : ).

---

As far as I am concerned, this entire thread can be deleted - I fear it serves only to confuse.

Edited by Guest
Posted

As far as I am concerned, this entire thread can be deleted - I fear it serves only to confuse.

i think it shows humility and proves that even experts sometimes can't see the forest thru the trees. :

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