Introduction
Besides browser-side visibility settings, you can also use server-side visibility settings. You can hide a control based on a saved table value or when the form is opened.
Prerequisites
The entity has to be configured with the visible rule.
|
Quick Steps |
| 1 |
Search for and open the entity |
| 2 |
Open the Conditions section, open the Expression section, and create a new Expression |
| 3 |
Enter the Name (ID), then click OK |
| 4 |
Add a new condition |
| 5 |
Enter the Expression details |
| 6 |
Save the entity |
| 7 |
Search for and open the form |
| 8 |
Open the control properties |
| 9 |
Enter the Visible Condition |
| 10 |
Save the form |
Detailed Steps
Step 1. Search for and open the entity.
This is where you will configure the visible condition.
Step 2. Open the Conditions section, open the Expression section, and create a new Expression.
Click the plus icon to add an expression.
Step 3. Enter the Name (ID), then click OK.
Give your expression a descriptive name. You will have lots of validations and you want to be able to identify each one at a glance.
Step 4. Add a new condition.
Click the Add Condition button to add a new condition.
Step 5. Enter the Expression details.
The first field identifies what the expression is comparing. Options are:
- Query: Entity query.
- Attributes: Entity attribute.
- Rule: Entity rule.
- Regx: Pattern that can be selected to search for.
- Condition: Inserts another condition in your expression as long as it's part of the same entity.
The next field is the specific item, such as the name of the attribute.
The third field is the operation the application will use for the comparison.
Operators are: In, NotIn, Like, Contains, Exists, Between, IsFalse, IsNull, IsTrue, IsNotNull, IsEqualTo, IsNotEqualTo, IsLessThan,
IsLessThanorEqualTo, IsGreaterThan, and IsGreaterThanorEqualTo.
The fourth field identifies what the expression is comparing to. Options are:
- Query: Entity query.
- Attributes: Entity attribute.
- Rule: Entity rule.
- Constant: Fixed value to compare to.
The last field is the specific comparison item, such as the Constant of Y.
This example uses an expression that is true if the Email Verification Flag is equal to Y (is checked).
The rule is added in the entity.
Step 6. Save the entity.
Step 7. Search for and open the form.
Open the form with the control you want to configure. Here, it is wfmOrderMaintenance form.
Step 8. Open the control properties.
Select the control you want to configure and open its properties.
Step 9. Enter the Visible Condition.
The Visible Condition is the expression you just defined.
Step 10. Save the form.
Then, run the Preview. Xelence displays the form output. You can test your updated settings.
When you have previewed your form, it should look something like this:
In this example, Email Verification is checked, so the Email ID field displays.
In this example, Email Verification Flag is not checked, so the Email ID field is hidden.
What are the improvements over S3 Version 6?
- Previously, the expression was added in the Initial Load section of the Validation Rules. Now, the expression is added under the Conditions section.
- Also, previously only single attribute expressions could be added. Now, you can add multiple attributes and conditions to it using And, Any, Not operators.
This post is part of the Maintenance Form topic. Click here to open the Maintenance Form Overview.
#Xelence
#Forms