Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

I'm sure there is a really obvious answer to this but help me out if you can.

I had been trying to get a "hide object when" object working for a database I am creating and was having issues so I decided to set up a simple test and I still don't understand why I am getting the following result:

I have two squares shapes (one blue and one red) and two circle shapes (one blue and one red).

I have two fields, shape and colour, with pop up menus covering the square, circle and blue, red options.

If I use the following with 'hide object when':
Test::Colour  =  "Red"
and  
Test::Shape   =  "Circle"

everything works fine. Three objects are displayed and the Red Circle hidden.

However if I want to reverse it, revealing only the Red Circle using the following:
Test::Colour    "Red"
and  
Test::Shape  
 "Circle"
everything but the Blue Square is still visible.

What am I missing here.

Thanks for the help.

 

Screen Shot 2015-06-15 at 1.07.46 pm.png

Posted

If I'm understanding you correctly it should be a really simple fix. You just need to change your "and" to an "or". It sounds backwards but if you really think about it, it makes sense.

test::Colour  ≠ "Red" 
or 
test::Shape ≠ "Circle"

or if this makes more sense to you, you can do the following which is a little easier to understand in my opinion.

not (test::Colour  = "Red" and test::Shape = "Circle")

 

  • Like 1

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