cancel
Showing results for 
Search instead for 
Did you mean: 

problem with float type context attribute

srinivas_sistu
Active Contributor
0 Kudos

hi,

I am having a input field, for which i have mapped a context attribute of type float. Problem is that because of float type, by default one 0 is coming in the input field. Is there any way to remove this 0. That is text field should not have any default value.

Regards,

Srinivas.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

if u set attribute as float r integer,0 will occure in inputfield we cant able to change....better change the attribute type as string then using Float.parseFloat() u change into float.........

Former Member
0 Kudos

Hi srini..

Not only for float, Also for integer type u get tht 0 in input field by default... I think we cant remove tht zero...

Urs GS

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Srini

I got the same problem in Webdynpro abap, i end up using String and changing the property of inputfield

textDirection to rtl and

converting that to float in my coding part.

Regards

Abhimanyu L

Message was edited by:

Abhimanyu Lagishetti