Do simple validation with the Datawindow propertiesTag(s): Datawindow


digit only, length unknown
[validation tab]
match(gettext(), '^[0-9]+$')
digit only, length fixed
[edit tab]
style : EditMask  mask : #####

[validation tab]
len(gettext())=5
digit, '%' or '"_"
[validation tab]
match(gettext(), '^[0-9%_]+$')
digit only and must end with "%"
[validation tab]
match(gettext(), '^[0-9]+[%]$')
canadian postal code
[edit tab]
style : EditMask  mask : !#! #!#

[validation tab]
match(gettext(), '^[a-z][0-9][a-z][0-9][a-z][0-9]$')

blog comments powered by Disqus