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

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

Recommended Posts

Posted

I'm looking for a custom function that will give me all the names of the field objects on the frontmost tab.

I can make one, but I'd rather save myself a couple hours work if I can.

Anyone have one?

Thanks,

David

Posted

All right, didn't take me as long as I thought and I clarified my requirements for myself.

/*Empty Fields ( object ; counter ) by David Jondreau, www.wingforward.net

This function is meant to take a tab name as the object parameter and return a 1 if any of the named fields are empty, 0 if they have values

*/

Let([

objects = GetLayoutObjectAttribute ( object ; "containedObjects" ) ;

end = ValueCount ( objects ) ;

thisObject = GetValue ( objects ; counter ) ;

thisType = GetLayoutObjectAttribute ( thisObject ; "objectType" ) ;

isField = ( thisType = "field" ) ;

empty = isField and IsEmpty ( GetLayoutObjectAttribute ( thisObject ; "content" ) ) ;

result = Case ( IsEmpty ( end ) ; 0 ; empty ; 1 ; counter ≥ end ; 0 ; EmptyFields ( object ; counter + 1 ) )

];

result

)

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