H
HelpForNewbie
I have a datalist of parameters that I need to validate. Each parameter
(row) can represent a different data type. Some are dates, some are patterns
as \d{2}[-]\d{2}. All are kept in the same table as varchar columns.
How I would like to do is to add a new column to this table that contains
the regular expression valiadation string in order to validate the associated
value. For Example:
ParmName ParmValue RegExp
StartDate 10/01/2004 [012]?\d\/[0123]?\d\/[0]\d
ContactTel 999-999-4444 \d{3}[-]\d{3}[-]\d{4}
....
....
Is is possible to have the Reg Validator within the EditItem template so row
each contains the specific reg expr for validation? Could the RegExp column
be feed into the ValidationExpression property for each row?
Thank you,
Jim
(row) can represent a different data type. Some are dates, some are patterns
as \d{2}[-]\d{2}. All are kept in the same table as varchar columns.
How I would like to do is to add a new column to this table that contains
the regular expression valiadation string in order to validate the associated
value. For Example:
ParmName ParmValue RegExp
StartDate 10/01/2004 [012]?\d\/[0123]?\d\/[0]\d
ContactTel 999-999-4444 \d{3}[-]\d{3}[-]\d{4}
....
....
Is is possible to have the Reg Validator within the EditItem template so row
each contains the specific reg expr for validation? Could the RegExp column
be feed into the ValidationExpression property for each row?
Thank you,
Jim