1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    171
    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
    171
    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?

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi