Hi to all,
on my action column of my grid, I'm trying to set the new Date() on a date field.
This my field model:
Code:
{
type: 'date',
allowNull: true,
name: 'dataConsegna',
dateFormat: 'Y-m-d H:i:s'
}
and on handler of action column this code:
Code:
view.getStore().getAt(rowIndex).set('dataConsegna',new Date())
But I get always this error:
Code:
Uncaught TypeError: Cannot read property 'call' of undefined
at Object.format (ext-all-rtl-debug.js?_dc=1484587724116:3928)
at Object.dateFormat (ext-all-rtl-debug.js?_dc=1484587724116:3908)
at constructor.date (ext-all-rtl-debug.js?_dc=1484587724116:31473)
at constructor.defaultRenderer (ext-all-rtl-debug.js?_dc=1484587724116:131375)
at constructor.updater (ext-all-rtl-debug.js?_dc=1484587724116:131378)
at Object.callback (ext-all-rtl-debug.js?_dc=1484587724116:5328)
at constructor.handleUpdate (ext-all-rtl-debug.js?_dc=1484587724116:98786)
at constructor.onUpdate (ext-all-rtl-debug.js?_dc=1484587724116:95536)
at constructor.fire (ext-all-rtl-debug.js?_dc=1484587724116:11888)
at constructor.doFireEvent (ext-all-rtl-debug.js?_dc=1484587724116:12425)
Any ideas?
Thanks a lot
Stefano