February 12, 201411 yr Hi, I have a FileMaker database that is acting as an archive for items deleted from our primary database (not FileMaker). Effectively, the 'Home' layout shows a fairly standard set of contact data. Below that, I have a Tab control, each with a Portal showing related records (so the tabs are Orders | Subscriptions | Advertising | Futures | Company Details | Mailings ) I would like to alert the user to the fact that there are related records somehow. Whether conditional formatting is the best tool for this I'm not sure, but either way, I'm torn between (and don't know how to implement) the below scenarios; Disable a Tab if there are no related records (portal record count = 0)...perhaps greying out the Tab title as a visual indicator. Enable a Tab if there are related records (portal record count >= 1) and colouring the Tab title as a visual indicator. Perhaps more simply, creating visual clues on the main Contact screen which show "True" or are highlighted bright green if there are related records. This would mean creating fields in the Contact table like 'txtOrdersTrue', 'txtSubscriptionsTrue' and so on and conditionally formatting those appropriately if there are related records to view. I have searched around and can't quite find what I'm after so any help much appreciated.
February 15, 201411 yr Just test with = NOT IsEmpty(relatedTable::related_foreignkey) If you test against the foreign key (the match to the parent record), you will get "False" if there are no children (portal) records. You will get "true" if there happen to be 1+ related children records. IsEmpty() function is the proper one for this test. Remove the "NOT" if you prefer the reverse test (True if there are NO related records) in your conditional formatting dialog.
Create an account or sign in to comment