It's all about the answers!

Ask a question

how to make decimal attributes default value as null


Surender Biyyala (403548) | asked Aug 14 '14, 1:36 p.m.
 Hi All,

I have a peculiar scenario where I have a decimal field and its range is 0.1 to 10.

so I created a validator that validates the given range.

and this field is mandatory based on the selection of a particular value in other attribute. and I need the validator only when the field is mandatory.

is there any way to achieve this?

and also the default value is shown as 0 but i dont want anything there is that possible?

Thanks
Surender.

One answer



permanent link
Donald Nong (14.5k414) | answered Aug 15 '14, 2:16 a.m.
1. Validators will always be executed. If you only need to enforce the range in the same condition as the field being required/mandatory, I think you need to use script-based validtors and put the same logic in the script.
2. Cannot find a way to do it either.

Comments
Ralph Schoon commented Aug 15 '14, 3:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I agree. This is probably the only approach.

Your answer


Register or 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.