ddreese Posted April 14, 2004 Posted April 14, 2004 I have an 'Alert' Calc field that I'm displaying on a layout to display information about the record that is not completed. I'd also like to display if there are no related records of X relationship. For instance, if there are no related records via the 'Safety Assessment' relationship, I'll want to display "Missing Safety Assessment" in the field. I just don't know which function I could use to test that. Any help appreciated, thank you!
jscooper Posted April 14, 2004 Posted April 14, 2004 assuming ID is a field that's in the Safety Assesment table and it always has a value: if(count(Safety Assessment::ID) = 0,"Missing Safety Assessment","") or if(not isvalid(Safety Assessment::ID),"Missing Safety Assessment","") Jeff
ddreese Posted April 14, 2004 Author Posted April 14, 2004 Thank you, I did not think of that.... did exactly what I wanted to!
bruceR Posted April 15, 2004 Posted April 15, 2004 The best function for this purpose is isEmpty. It has been optimized for this purpose and will give much better performance than the count function. FMI reps have repeatedly made it clear that using isValid as suggested here is not relible. if( isEmpty(Safety Assessment::ID),"Missing Safety Assessment","")
Recommended Posts
This topic is 7872 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 accountSign in
Already have an account? Sign in here.
Sign In Now