Debug Conditional Rule Access v9 / v10

Author
Messages
edison
Advanced Member
Posts: 23
Advanced Member

    Hello,

    We upgraded LSF from v9 to v10. We're having an issue where users can edit their own records. We don't want users to edit their own record, it is working on v9 but not in v10.

     

    I've narrowed it down to the Security Class - Conditional Rule Access.

    this line:

    if((user.getCompany()==lztrim(form.COMPANY))&&(user.getEmployeeId()!=lztrim(form.EMPLOYEE)))
       'ALL_ACCESS,'
    else
       'NO_ACCESS,'

     

    The above rule always default to false. I've tried different rule combinations and it has led me to believe that either user.getEmployeeId() or form.EMPLOYEE is returning 0 (or something else)

     

    I want to know the value of user.getEmployeeId(). 

    How do you usually debug this? is there a way to print to the log or a popup to the user?

     

     

     

    JimY
    Veteran Member
    Posts: 510
    Veteran Member
      Here is what we have for HR11


      if(user.getCompany()==form.EMP_COMPANY&&user.getEmployeeId()==form.EMP_EMPLOYEE&&form.EMP_AUTO_DEPOSIT)
      'C,I,'
      else
      'NO_ACCESS,'
      Deborah Griffin
      Basic Member
      Posts: 4
      Basic Member
        Form field names must be what is on the form in the Expression builder.
        form.EMP_COMPANY and form.EMP_EMPLOYEE
        ---