Joseph Proch Posted November 7 Posted November 7 Hi there - I'm trying to figure out a smart rule that triggers an error if the Employee Earning Type is blank. I've tried using the condition {!EMPLOYEE.EARNINGTYPE.NAME!}!="" but that doesn't seem to do the trick. Seems like this should be pretty simply but I'm stuck. Any thoughts?
Lee Savidge Posted November 8 Posted November 8 Just put this in the condition: {!EMPLOYEE.EARNINGTYPE.NAME!} This essentially asks if this value exists. If that doesn't work try: strlen({!EMPLOYEE.EARNINGTYPE.NAME!}) < 1
Lee Savidge Posted November 8 Posted November 8 It seems that the field lookup provides an incorrect field name or the condition is evaluating the wrong name. It returns {!EMPLOYEE.EARNINGTYPE.NAME!} and it should be {!EMPLOYEE.EARNINGTYPENAME!}. I guess that's a bug @Sterio, Louis? If you look in EARNINGTYPE in the catalog, you can see the NAME field so {!EMPLOYEE.EARNINGTYPE.NAME!} should be correct but if you use it, it ignores it. Removing the period fixes it. I got the above from the spreadsheet here
Recommended Posts