To write a rule using element groups for specific application forms

  1. On the Profiles form, click on a profile and then click Select Profile.
  2. From the Profile Management options set, select Security Classes.
  3. Select a security class and click Rules for Class.
  4. In the Object Selector for element groups, select the element group you want to write element group rules for.
  5. Set the access level. Typically, you will write a conditional rule that grants access to the element group for a limited set of data. For example, if you use the PROCLEVEL element group, you could write rules that allow access for a range of companies and process levels.

    If you want to set up a rule that uses a range of numbers, use the isNumInRange() function. For example:

    isNumInRange(COMPANY, 0, 11)

    If you want to allow all access or deny any access to an element group, you should consider writing rules against forms, files, and elements instead. The process of writing rules against forms, files, and elements is simpler.

  6. When you have finished setting the access rule, click Apply.
  7. Select the online application form you want to write a rule for that references the element group.
  8. Write a conditional rule using the Expression Builder. In this rule, use the isElemGrpAccessible() function. For example, assuming you have an element group named COEMP that contains the COMPANY and EMPLOYEE elements,

    isElemGrpAccessible('COEMP','','HR',lztrim(form.EMP-COMPANY), lztrim(form.EMP-EMPLOYEE))

    Note: The lztrim function is included in the above rule to remove leading zeroes from the Company and Employee values. This assumes that these values will be compared to values that also do not have leading zeroes. This would be the case if you are comparing the values to the range set up with the isNumInRange() function or if you are comparing the values to numbers stored in the Lawson LDAP repository.