Jump to content
Server Maintenance This Week. ×

Fields on a Tab


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

Recommended Posts

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

)

Link to comment
Share on other sites

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