data[] is undefined

Discussion about current development, screenshots, getting involved, connecting with other members, etc. Off-topic conversation welcome.

data[] is undefined

Postby rr7 » Wed Mar 26, 2014 10:52 am

Hi, I just trying to work with a custom ajax Store and when the Calendar render I get this error--> Image

the Store field fecha_reservacion retrieve from the db the StartDate but still it's not showing it at the calendar, so here's some of the code

Code: Select all

 Ext.apply(, {

        StartDate:   {name: 'fecha_reservacion', mapping: 'fecha_reservacion', type: 'date', dateFormat: 'c'},

var eventStore = Ext.create('', {

        fields: [
            {name: 'id', type: 'int'},
            {name: 'fecha_reservacion', type: 'date', dateFormat: 'c'},
        proxy: {
            type: 'ajax',
            url: '/reservacion/get',
            reader: {
                type: 'json'

        autoLoad: true

Ext.create('Extensible.calendar.CalendarPanel', {
        eventStore: eventStore,
        calendarStore: calendarStore,
        renderTo: 'content',
        title: 'Custom Event Mappings',
        width: 800,
        height: 700,

I really need some help please!
Posts: 2
Joined: Tue Mar 25, 2014 4:49 pm

Re: data[] is undefined

Postby brian.moeskau » Tue Apr 29, 2014 9:42 pm

Start date and end date are both required, so make sure you have also mapped/reconfigured the end date field to the data being returned as well.
Personal Blog: Extraneous / Twitter: @bmoeskau / Meetup: Austin Bleeding Edge Web
User avatar
Site Admin
Site Admin
Posts: 1344
Joined: Sat Sep 18, 2010 5:00 pm
Location: Austin, Texas

Re: data[] is undefined

Postby Aliraza183 » Thu Mar 12, 2015 5:53 am

because I'm working with ExtJS just over a month ... And two months ago with javascript ...????
Posts: 1
Joined: Thu Mar 12, 2015 5:13 am

Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 1 guest