I have mentor records that are related to trainee records. In the mentor records, there is a “backwards” reference called [Related Trainees] that contains a list of all the related trainee records to that mentor. I want to format the mentor based on if the column [Current Status] in any [Related Trainees] is equal to “Active Approved”… What would the code look like for that? I’m stumped as to where to start.
Would something like IF(ANY([related trainees].[Current Status])=“Active Approved”, True) work at all? I hesitate to think so…
Yes and yes. I have about 10 format rules for mentor records, most of which act on the mentor name. Basically to denote different statuses. Usually only up to 3 may apply to a given record at one time.
All the rules use icons, so I should see the icon I selected for this rule, which I do not, only the other rules. I actually intend to make this test for more than just the condition discussed, so it will have a narrower application that it does now. At this point, about half (or more) my mentor records should have this icon, and none do. I should add that no existing rule overlaps this one, hence why I was unsure how to code it.
I gave a broadcast notice to my users. Turning off the other format rules did not solve the problem.
@Steve … should I take this up with support, or is there something more I could post here to help you troubleshoot this? Here are my expression test results:
As you can see, there are plenty of positive results, but the records do not get formatted still, even with all others turned off. Please advise, and thanks!
I noticed when I disabled this format rule, by the way, that the column I’m attempting to apply the formatting to shifts left to right, the same amount of space as the icon. The icon simply does not appear. So weird.
Support has found that this is a glitch in the dereferencing utilized in this expression. When dereferenced in this manner, all column names and commands are case-sensitive unlike other instances in Appsheet.
They are working on a fix. In the meantime, a workaround is to ensure all commands and column names are capitalized exactly.
Quote from support:
It seems a bit weird, but I’ve replaced condition IN(“Active Approved”, [related trainees][current status])
with IN(“Active Approved”, [Related Trainees][Current Status]) and it starts to work
It is worth noting that I wrapped this expression in another “and()” expression, and all of it had to be capitalized exactly, including AND(), for it to work.