PDA

View Full Version : numberfield with -0 value



syl_via38
21 Jul 2014, 1:37 AM
Hello all,

I use 3 consecutive numberfield to enter some spatial coordinates like that

49714

At the end coordinates can be : 00d01mn58s

But I need to allow this kind of coordinates : -00d01mn58s

But with the numberfield there is no way to print -0 value in the first numberfield.

how can I do ? can you help me ?

Thanks a lot

is there my source code with numberfield max and min values



{
xtype: 'numberfield',
allowDecimals :false,
id:'decD',
value: -21,
maxValue: 85,
minValue: -35,
},
columnWidth: .20
},{
id:'decM',
xtype: 'numberfield',
allowDecimals :false,
value: 1,
maxValue: 119,
minValue: 0,
columnWidth: .20
},{
id:'decS',
xtype: 'numberfield',
allowDecimals :false,
value: 58,
maxValue: 119,
minValue: 0,
columnWidth: .20
}



Sylvia

syl_via38
22 Jul 2014, 11:11 PM
Please, any idea for this problem ?

Scott Mildenberger
23 Jul 2014, 6:01 AM
Maybe make a separate field for the sign, clicking it just toggles it back and forth from + and -.