PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12/01/2017 9:06 AM by  Deborah Griffin
Debug Conditional Rule Access v9 / v10
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
edison
developer
Private
(49 points)
Posts:21


Send Message:

--
11/13/2017 1:54 PM

    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
    Private
    Private
    Veteran Member
    (1165 points)
    Veteran Member
    Posts:417


    Send Message:

    --
    11/14/2017 6:19 AM
    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
    Senior Business Consultant
    Bails & Associates, LLC
    Basic Member
    (12 points)
    Basic Member
    Posts:4


    Send Message:

    --
    12/01/2017 9:06 AM
    Form field names must be what is on the form in the Expression builder.
    form.EMP_COMPANY and form.EMP_EMPLOYEE
    You are not authorized to post a reply.