People,
I have a combobox component supported by JSONStore. Data uploaded to the repository returns null for the combobox value. The value is int. The JSON decoding process converts a null value to zero; as a result, the combo box cannot render when trying to find pk, a zero that does not exist in its backup storage.
I found the useNull: config parameter for data.Field objects updated to 3.3.0 Final and set the int value for combobox to use Null: true. Unfortunately, this has no effect. The decoded value still changes from zero to zero.
Any ideas on how to not set the field to zero when the data for the JSON field is zero?
Here is a photo of what is happening. Pay attention to the data: the value is zero, but the JSON value is null.
Thanks!
(gah! stoopid reputation <10, so I can't post the pic directly. See here: debug pic )
Also, here is my storage configuration:
fields: [ {name:"id", type:"int"}, {name:"occurenceDate", dateFormat: 'Ymd\\TH:i:s', type:"date"}, {name:"docketNumber", type:"string"}, {name:"courtLocationId", type:"int", useNull:true}, {name:"assignedOfficerId", type:"int", useNull:true}, {name:"primaryIncidentTypeId", type:"int", useNull:true}, {name:"secondaryIncidentTypeId", type:"int", useNull:true}, {name:"tertiaryIncidentTypeId", type:"int", useNull:true}, {name:"incidentLocation", type:"string"}, {name:"summary", type:"string"}, {name:"personalItemsSeized", type:"string"}, "supplements", "parties", "judgeIds" ]