PDA

View Full Version : record filed value after updateRecord



oracle.cons.tr
7 Mar 2014, 6:18 PM
Hi ,
after i perform form.updateRecord()

record.get('dateField') returns like
Wed Mar 12 2014 00:00:00 GMT+0200 (EET) MY-PLAN

and since the server expects it like 20140312
store.sync fails.

How can i make form.updateRecord()
actually update it like 20140312

Thanks.

chramer
8 Mar 2014, 7:12 AM
Try to set the 'dateField' like this in the model:


{name: 'dateField', type: 'date', dateFormat: 'Ymd'}