How to validate attribute values in Configurator with automatic Undo?
Hi all,
we have the requirement to validate attribute values.
If the value is not set appropriately we need to automatically Undo the changes without allowing the user to proceed with incorrect attribute values.
The validation as such is a bit more complex. We cannot just use enumerated values.
Example of the validation: E.g. String need to start with "aaa".
When using Cfg_AttributeSelected script we cannot automatically Undo the changes, because:
- we cannot set the attribute back to NULL after showing the user the problem.
- we cannot use a dummy value, because that dummy value would NOT be allowed either.
we have the requirement to validate attribute values.
If the value is not set appropriately we need to automatically Undo the changes without allowing the user to proceed with incorrect attribute values.
The validation as such is a bit more complex. We cannot just use enumerated values.
Example of the validation: E.g. String need to start with "aaa".
When using Cfg_AttributeSelected script we cannot automatically Undo the changes, because:
- we cannot set the attribute back to NULL after showing the user the problem.
- we cannot use a dummy value, because that dummy value would NOT be allowed either.
0