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?
|
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 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.