infoweb Posted November 16, 2014 Posted November 16, 2014 Hi there, I'm getting what seems to be some strange behaviour when I try to use the following calculation in the "Hide object When" option: Products::type ≠ "Spare Parts" or Products::type ≠ "Repairs" The Goal is to show the object if type contains either "Spare Parts" OR "Repairs" and hide it for any other option. If I use either of the two options on their own the hide object works, When I use them together it permanently hides the object.ie: it is hidden even when type DOES equal "Spare Parts" or "Repairs" Am I missing something really obvious here?
eos Posted November 16, 2014 Posted November 16, 2014 Products::type ≠ "Spare Parts" or Products::type ≠ "Repairs" Am I missing something really obvious here? Every record is “not a OR not b” – "Spare Parts" ≠ "Repairs", and "Repairs" ≠ "Spare Parts" – but you want to hide your object on every record that is “not a AND not b”. Use Products::type ≠ "Spare Parts" AND Products::type ≠ "Repairs" or reverse the logic as NOT ( Products::type = "Spare Parts" OR Products::type = "Repairs" ) 2
infoweb Posted November 16, 2014 Author Posted November 16, 2014 That solved the issue. I have to admit, I had to read your explanation a few times before I actually understood the logic, but it finally made sense. Thanks eos.
Recommended Posts
This topic is 3717 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