In the modeler, we can check regular expression as follows:
- Entity validation Rule:
we can only use regular expression material as regular expression.
- input widget validation expression:
we can only use string value as regular expression.
- Rule or microflow:
we can use string value, Constant value and Enumeration's caption value. but we cannot use regular expression material's value.
we cannot use isMatch($value, regular expression material's value).
I would like to define a regular expression in one place and use it.
Idea as follows:
- Would it be possible that mendix allow to use regular expression material's value in all validation
scene(e.g. Entity validation rule , input widget validation expression , Rule, microflow) ?
- Would it be possible that mendix allow to use Enumeration's caption value in all validation scene?
I need this :-)
Isn't this covered by Constants now? As you can make them available in client too.
I read somewhere Mendix wants to focus on the core. This should certainly qualify.
Now, I don’t use Regex at all; just re-using Rule, which does the RegEx
Submitted two years ago. Still not implemented?
You should define the regexes in one place only: the Regex materials.
You should be able to use them anywhere.