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

Can an integer field accept 0 as a valid value when required

I set one of my integer fields as required. When creating the record it's always populated with 0 by default, which is a valid value for our field description. But when I try and save with 0 in the field it says the field needs to be filled in.

Does Integer accept 0 as a valid value or is there a better type to use for this field?

0 votes

Comments

I am having the same issue.  Is there a resolution to this?  Should a defect be written against this?



2 answers

Permanent link
There are several work items written against this and they have been funneled to Enhancement 47827.  As of now, this enhancement does not have a due date.

0 votes


Permanent link
I am having the same issue. Is there a resolution or workaround to this? How to deal with it?

We're thinking to create an attribute "Small string" with a regular expression validator that allow empty string and integer numbers.

0 votes

Comments

Your solution sounds like it would work; I think I will try something similar.

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

Question asked: May 10 '10, 7:48 p.m.

Question was seen: 4,151 times

Last updated: Jan 30 '13, 1:45 p.m.

Confirmation Cancel Confirm