1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    162
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default Calendar example update not firing

    Calendar example update not firing


    I'm trying to convert the calendar example to use a remote store. I got rid of the MemoryEventStore and replaced

    Code:
         this.eventStore = Ext.create('Ext.calendar.data.MemoryEventStore', {
                data: Ext.calendar.data.Events.getData()
            });
    with

    Code:
         this.eventStore = Ext.create('Ext.calendar.data.EventStore');
    my store looks like this:

    Code:
    Ext.define('Ext.calendar.data.EventStore', {    extend: 'Ext.data.Store',
        model: 'Ext.calendar.data.EventModel',
        autoLoad: true,
        remoteSort:true,
        proxy: {
            type: 'ajax',
            api: {
            read: 'data/jsonEvents.php',
            update: 'data/updateEvents.php',
           create: 'data/addEvent.php',
           destroy: 'data/deleteEvent.php'
        },
            reader: {
                type: 'json',
                root: 'eventDatabase',
                successProperty: 'success',
                 totalProperty: 'totalRecords'
            }
        }
    });

    Adding an event works and deleting an event works but editing an event never calls data/updateEvents.php. nothing happens when I drag an event or when I edit an event from the event form.

    How do I update an event?

  2. #2
    Sencha User
    Join Date
    May 2010
    Posts
    162
    Vote Rating
    1
    Dmoney is on a distinguished road

      0  

    Default


    I still can't get the update to work in the calendar example. has anyone got this working with a remote store? the add and delete work but the update doesn't seem to do anything. the update function is called. but the commit never calls my php script.

    Any ideas?

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