I’m slowly getting my head around Application Studio, and am currently exploring Data Rules.
On Sales Order Entry, I’m trying to create a data rule where if the CustNum is one from a short list, and the PONum field is empty, highlight the PONum field in red.
I can get it done for a singular custnum, but when I start trying to add multiples with OR statements it gets itself into a mess with groupings that seem to break the flow and functionality.
Is there a simple way of telling it to look at a defined list of customers, or am I better off making individual rules for each custnum, which would be a pain, but not the end of the world?
You should be able to make a group of customers where the conditions are joined by “ORs” and then add in the PONum outside of that group connected to the group with an AND. Did you try that?
Yeah, this is a pain. Here’s my suggested work around.
Yes, this is the path I would take!
I’m not sure how you’re compiling your list of CustNums… but if you can store that list value in a dataview.column, you can then combine an event and a Data Rule to do what you want.
~*~
Here’s a quick example… I used PartNum instead of CustNum, but that doesn’t matter:
Thanks all, will take a look at these excellent suggestions and see how I get on!
My thought was to put all the customer OR queries in one group and the PO num outside of it as an AND, but it just wasn’t having it. Maybe it’s just me learning