It's all about the answers!

Ask a question

Attribute Customisation - Field Validation

David Beange (111356100) | asked Oct 25 '12, 3:26 a.m.
I have a requirement in RTC to validate attribute content to the following format :-
PROJECT_TYPE can be any of -  WR, FD or UP

In RTC I have created an attribute Validator in the form of a regular expression :-


Is there a better way I could validate this string? There is no requirement for the date part to be specifically in the past or future just that it must be in YYYYMMDD format and have valid values and that the whole string be in the specific format.


One answer

permanent link
Ralph Schoon (62.9k33645) | answered Oct 25 '12, 4:04 a.m.
I am not aware of any easier way. You can look up proposals for reg exp in the internet using 'regular expression date' as search term. To enhance usability you could also try to use a string attribute for the string part and validate with reg exp, use a time stamp attribute and then use a script based calculated value provider to compose the result maybe as read only attribute.

Your answer

Register or to post your answer.