cancel
Showing results for 
Search instead for 
Did you mean: 

Issues in Simple Data Type - Float

Former Member
0 Kudos

Hi SDN,

I have created a simple data type of float and assigned to a context attribute. I have mentioned that the minimum and maximum inclusive value for the float as 0.1 and 29.9. This is assigned to a field aaa. When the page loads for the first time, there appears 0 by default and if I dont edit the field and try saving, it doesnt throw any error message. It accepts the value which was very strange to me. But if I edit the value and put as 0.0, it throws error message saying, the acceptable value for the field is between 0.1 and 29.9.

What should I do to resolve this issue? Also Can I make the field empty instead of a zero appearing the field?

Regards,

Ganesh N

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185879
Active Contributor
0 Kudos

Hello Ganesh,

Whatever the value you have provided only that values are allowed in that input field. if the value is 0 or 0.0 you can validate that attribute and throw an error message that "The Value should not be 0".

Regards

Nizamudeen SM

junwu
Active Contributor
0 Kudos

just initialize the attribute with some value, like 0.1.