PDA

View Full Version : Clendar example slighty chenged to read data from database issue



marcin.drewing@gmail.com
18 Oct 2012, 12:56 AM
Hello,

I have big issue which I can handle bymyself. There is example of complex calendar which is use store inline and store has configured memory proxy. So data is readed from file Evenst.js. My goal is to change this example in the way to read data from server. In MemoryEventStore.js I've changed proxy to ajax and add line url : '...'.
Ext.define('Ext.calendar.data.MemoryEventStore', { extend: 'Ext.data.Store',
model: 'Ext.calendar.data.EventModel',

requires: [
'Ext.data.proxy.Ajax',
'Ext.data.reader.Json',
'Ext.data.writer.Json',
'Ext.calendar.data.EventModel',
'Ext.calendar.data.EventMappings'
],

proxy: {
type: 'ajax',
url:'data/users.json',
reader: {
type: 'json',
root: 'evts'
},
writer: {
type: 'json'
}
},
And I see error which is "Uncaught TypeError: Cannot call method 'getTime' of null " .
Please provide me information how can I solve my problem.

mitchellsimoens
23 Oct 2012, 6:17 AM
What class and line is the error being thrown on?