PDA

View Full Version : Numberfield send strin instead of null



alberto01
20 Jun 2013, 8:22 AM
Hi I have this problem.
I have a form with which I modify a record of a JsonStore.
This is the config of the JsonStore:

reader: new Ext.data.JsonReader( {
fields: [ 'item_ref', 'item_type_code', { name:'order_by', type: 'int' }]
} ), [ ... ]

I'm trying to modify the order_by field (numberfield) but If leave it blank it sends a string ""...
I would aspect a json with the order_by field empty something like :


item_ref: 16item_type_code: 1order_by:

But I got this:


item_ref: 16item_type_code: 1order_by: ""

can you help me?

alberto01
24 Jun 2013, 12:48 AM
up plz 8-|