mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
Updated Validation Configuration (markdown)
@@ -104,3 +104,7 @@ _(Empty cells are not checked, see not empty validation)_
|
|||||||
|
|
||||||
### groovy
|
### groovy
|
||||||
|
|
||||||
|
"groovy" : "value.contains('9') ? true : 'SOME ERROR TEXT'"
|
||||||
|
|
||||||
|
If the regexp is not enough, the groovy validation should fit. The groovy expressions can use the variable value which is the String in the cell. It should return a boolean true or the String "true" to be valid, in all other cases the toString representation of the result will be the error message. That also means, that there is no i18n support for the message!
|
||||||
|
_(Empty cells are not checked, see not empty validation)_
|
||||||
Reference in New Issue
Block a user