Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is there a way to create a Validator for enumerations?

Sometimes there are constraints on the allowed values of an attribute. For instance a specific format for a text attribute, or a permitted range for a number attribute. Since RTC 3.0, there are two out-of-the-box validation rules that can be configured for this kind of constraint checking: A regular expression based one and a number range one. My questions is I would like to create a constraint for an enumeration if the selection on the drop down box is 'Yes' or 'No', and if the user selects 'No' then I do not want the user to continue or 'Save' until the 'Yes' is selected to satisfy the current 'Status'. Is there a current way to do this? If not, will the next version of RTC help with this?

0 votes



One answer

Permanent link
Don, you could try to use a scripted validation. You would have to configure the related precondition in the operation behavior to prevent from saving if your validation says error. If that does not fly, you could create a precondition yourself.

There is no difference in the new version, as far as I know.

2 votes

Your answer

Register or log in to post your answer.

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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 369

Question asked: Jun 12 '12, 8:26 a.m.

Question was seen: 5,891 times

Last updated: Jun 15 '12, 4:25 a.m.

Confirmation Cancel Confirm