Simple AND/OR question
Eddy Kalliski
Hello there.I have added a field which I only want to display only for certain customers and only on a Sales Order.
I added this line to the "visible" field in the Coresuite Designer:
GetData("LD.Par.FormType")= "139" AND Document("CardCode")= "21956" OR "20359"
It works on Sales Orders, but not on the other type of documents.
And when I try:
GetData("LD.Par.FormType")= "139" AND Document("CardCode")= "21956" OR
GetData("LD.Par.FormType")= "139" AND Document("CardCode")= "20359"
It gives an error.
What do I need to change? I bet it's a minor thing like "if" or "and if" or something, but I don't know what exactly.
I bet this is the easiest question ever asked here!
Thanks in advance!
Philipp Knecht
Hi EddyYou can simplify it:
GetData("LD.Par.FormType")= "139" AND (Document("CardCode")= "21956" OR Document("CardCode")= "20359")
You need to put this expression on 1 line. Maybe this was the error.
hth
Eddy Kalliski
Hi Phillipp,It gives three errors :(
One of them mentions the missing closing bracket at the end. But when I put the bracket there, another error comes up.
Eddy Kalliski
Hm! :roll:Yesterday it gave me three errors.
Today, I tried again, and exactly the same, and it works!
I have no idea why.
Thanks :)
0
Please sign in to leave a comment.
Comments
0 comments