Jump to content

Recommended Posts

Posted

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?

Posted

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

 

Posted

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 

 

×
×
  • Create New...