1. #1
    Ext User
    Join Date
    Mar 2008
    Posts
    4
    Vote Rating
    0
    ajanthanr is on a distinguished road

      0  

    Default Record is undefined error

    Record is undefined error


    I am getting following error. What am I doing wrong?

    Record is undefined
    [Break on this error] f = Record.prototype.fields, fi = f.items, fl = f.length;

    Ext.onReady(function() {


    var store = new Ext.data.JsonStore({
    id: 'id',
    fields: Tine.Calendar.EventArray,
    data: [
    {id : '1', summary: 'Breakfirst', color: '#FD0000', dtstart: '2009-05-29 08:00:00', dtend: '2009-05-29 09:00:00'},
    {id : '14', summary: 'whole day 5', color: '#FD0000', dtstart: '2009-04-24 00:00:00', dtend: '2009-04-25 23:59:59', 'is_all_day_event': true}
    ]
    });

    ...
    });

    Thanks

  2. #2
    Ext JS Premium Member stever's Avatar
    Join Date
    Mar 2007
    Posts
    1,407
    Vote Rating
    6
    stever will become famous soon enough stever will become famous soon enough

      0  

    Default


    Something in the last revs. Try not using JsonStore, and creating the reader yourself.

  3. #3
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    380
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default


    JsonStore is working for me.

    Could I please see what Tine.Calendar.EventArray looks like.

    I'd like also to see what your JSON load response looks like.

    In addition, when defining meta-data, use "idProperty" instead of "id" so as not to be confused with the Store's id.
    /**
    * @author Chris Scott
    * @business www.transistorsoft.com
    * @rate $120USD / hr; training $500USD / day / developer (5 dev min)
    *
    * @SenchaDevs http://senchadevs.com/developers/transistor-software
    * @twitter http://twitter.com/#!/christocracy
    * @github https://github.com/christocracy
    */

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar