1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    ThorStan is on a distinguished road

      0  

    Default 4.1.3 - Issue with ExtDirect and store.sync() from grid

    4.1.3 - Issue with ExtDirect and store.sync() from grid


    Hi everyone,

    i really dont have any clue what the issue might be. I have a grid with a store, that does have a model with a proxy of type "direct" and a correct working "Api" definition. I know that, cause data is fetched and displayed in the grid.

    Now, when i do changes to the grid (insert,updates) and execute "grid.store.sync()", the post-request is send to the server but the "data" attribute within is just an empty object.

    I checked with the store listener "beforesync", but the change records are recognized here.

    Please help && kind regards,

  2. #2
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    ThorStan is on a distinguished road

      0  

    Default


    Okay finally i found my mistake. I defined "params" array within the api config for "Ext.Direct.addProvider" . It works when just doing...

    PHP Code:
                'create' => array(
                    
    'len' => 1
                
    ),
                
    'update' => array(
                    
    'len' => 1
                
    ), 
    Kind regards,

    /close