Results 1 to 2 of 2

Thread: Calendar example update not firing

  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    177
    Vote Rating
    2
      0  

    Default 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
    177
    Vote Rating
    2
      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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •