Why does a regular expression unsing in a validator returns different behavior in web and eqlipse client?
Hi to all,
hope that somebody can help me. I have the problem, that in the eclipse client a regular expression works fine as validator but in the web client not. I have defined a very simple regular expression validator for a small string attribute. It should only check if the string is a lastname (ex. Mustermann) without leading or ending whitespaces I have used the follwing simple reg exp: [a-zA-Z]+ In the test section of the validator it works fine. When creating a WI with this attribute in eqlipse client: It works fine When creating a WI with this attribute in web client: It don't work :-( Any Idea? Im working on 4.0.6 Thanks in advance Nicole |
Be the first one to answer this question!
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
What browser/version are you using? What is the behavior in the web client? Do you see the error or warning icon when an invalid value is entered?
I have not seen different behavior of a regex, but I did see different behavior of a getValue() or getLabel() function. I suggest you debug the code to confirm whether the regex is really applied to the same string in both web and Eclipse client.
How can I debug this? I have no javascript code written. When I create a RegExp Validatior at Process Configuration --> Project Configuration --> Configuration Data --> Attribute Customization --> Validators...I only can define the regular expression.