Introduction
Under normal circumstances, every time the user navigates to a maintenance form, that form is editable, whether the user is creating a new record or updating an existing one. However, you may have a business need to change a form to read-only so that the user cannot change the data or save any changes.
To make a form read-only, you can create a rule defining the conditions you want to prevent the user from editing the form, then enter that rule as the ReadOnly Rule on the form's entity.
Prerequisites
- The entity must exist.
- The maintenance form must exist.
|
Quick Steps |
| 1 |
Search for and open the entity |
| 2 |
Open the Conditions section, then open the Rule section |
| 3 |
Add a rule |
| 4 |
Enter the details, then click OK |
| 5 |
Design the rule's expression |
| 6 |
Compile the rule, then save the rule |
| 7 |
Open the Configuration tab |
| 8 |
Enter the ReadOnly Rule in the Other Details panel |
| 9 |
Save the entity |
Detailed Steps
Step 1. Search for and open the entity.
The form's entity is where you configure its conditions.
Step 2. Open the Conditions section, then open the Rule section.
This is where you are going to configure the read-only rule.
Step 3. Add a rule.
Click the plus icon to add a rule.
Step 4. Enter the details, then click OK.
Enter the details:
- Name(ID): Give your rule a descriptive name to make it easy to work with in future.
- Access Modifier: Specifies the level of accessibility of the rule.
Access options are "Public", "Private", and "Protected". Public means any entity can access the rule. Private means only this entity can access this rule. Protected means only
this entity and any child entity can access this rule.