Writing Rules for Element Groups
Use this procedure to write rules that control users' access to form data based on element group values. A Lawson Security element group is a set of elements you define so that you can control access to forms when the forms are based on a file (table) whose key fields match the elements in the element group. Lawson delivers two element groups, one for company/process level security and one to support Human Resources security. For example, with the company/process level element group (PROCLEVEL), you can define a rule that grants access to users if the company number equals a specified value or falls within a range of values, and when the process level equals a specified value or falls within a range of values.
Using element groups for security involves several steps:
-
If you want to write rules using element groups other than the Lawson-delivered element groups, create the element groups.
For more information, see the section "Defining Element Groups".
-
Determine the securable objects that include elements that the element group applies to. For example, if you want to control access to an online form through an element group, you must determine the key fields for the form and create an element group that includes one or more of those key fields. If you want to control access to a Select list, you must determine what file the Select list depends on and what key fields are used by the Select list, and then create an element group that includes the key fields.
-
Write a rule that determines when an element group is accessible. That is, set up the element values or ranges of values for when the element group is accessible.
-
Write a rule on the securable object that sets the access based on whether the element group is accessible for the given user and data.