Writing Rules for Various Object Types

The kind of object you are writing a rule for affects the way you approach the rule. The following sections describe the types of objects and what you need to keep in mind when writing a rule for that kind of object.

Rules for Online Forms

When you write rules that apply to an online form, make sure that you also grant access to the objects that contain the form. If you do not, the rules governing the form are ignored.

The security class that the online form rule belongs to must also grant access to the system code (category) and program that contain the online form.

Rules for Online Form Objects

If you have granted access to the online form as a whole, the objects on the form (fields, buttons and so on) are also granted. However, if you want to restrict to some actions on a form, you can do so.

When you write rules for form objects, make sure that the security class that the object belongs to also grants access to the system code (category), program and the online form itself.

Rules for Drill Around and Select Lists

To set up security for Drill Around and Select lists, you write rules on elements and files. (Use the Drill Explorer aid to see what files are associated with fields for Drill Arounds and Select lists. You access the Drill Explorer by right-clicking in the Object Selector on form fields with drop-down lists.)

Rules for Environment Data Sources (GEN, LOGAN, ENV)

When you grant access to a data source (such as a data area), you must be in the profile for that data source. For instance, if you want to grant access to the GEN data area, you must have the GEN profile selected. If you have the LOGAN profile selected, you can write a rule that seems to grant access to the GEN data source, but that rule will be ignored at execution time.