Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

IBM RTC 6.0.3 how can I have numeric attribute that accepts integers and decimals at the same time

 Hello, 

I notice that I can create attribute integer and decimal type, but the problem is when the user enter a integer number when is decimal it throws an exception, so I want to have the validation that is numeric only, it doesn't matter if is integer or decimal, is there any way to make it without have a string? 

0 votes

Comments

What exception did you get? I don't seem to get any such exceptions.

when I type an integer number in a decimal it says 

 and is not let me save it, but I don't want to change it to integer because I have decimal too, so I just need need numeric attribute, it does not matter if its integer or decimal, just should validate is numeric, so what type of attribute can accept both?

I don't have such problem with a Decimal attribute. Maybe double check your configuration and see if you have any custom validation or preconditions.

It is decimal and the problem is when I attempt to put an integer or 0 

No such problem when using RTC 6.0.3 iFix003. I put "0" into Decimal, and "0.002" into Integer and both end up with "0", as shown below.


Be the first one to answer this question!

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: Mar 21 '17, 1:22 p.m.

Question was seen: 1,572 times

Last updated: Mar 21 '17, 11:39 p.m.

Confirmation Cancel Confirm