1. #1
    Sencha - Services Team Stju's Avatar
    Join Date
    Dec 2008
    Location
    Redwood city, California
    Posts
    284
    Vote Rating
    1
    Stju is on a distinguished road

      0  

    Question Posting additional parameters with create, update and destroy.

    Posting additional parameters with create, update and destroy.


    HI!
    How can additional parameters be sent together with update, create and destroy in DirectStore?
    Stju

  2. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    Mainz
    Posts
    241
    Vote Rating
    1
    crp_spaeth is on a distinguished road

      0  

    Default


    In the current SVN Head the structure of those CRUD requests had changed.
    As far as I can tell, the requests do all look like the load Request.

    the data propertie of an update looks like that:
    PHP Code:
    {
     
    baseparam1 'testparam',
     
    anotherparam 'another param attached to the stores params',
     
    rows : [{ .. the record to update .. }]


    So You have to extract the record(s) from the root propertie of the store instead of the root of the data param. But this makes it possible to access the params from the store in C-U-D requests also.

  3. #3
    Ext User
    Join Date
    Feb 2009
    Location
    Japan
    Posts
    10
    Vote Rating
    0
    r3ap3r is on a distinguished road

      0  

    Default


    crp_spaeth,
    Can you please clarify this a little more for me. I need to send additional parameters to the server when my DirectProxy destroy request is sent. Currently (using ExtJS 3.0.0) the destroy request only includes the ID of the record being destroyed in the 'data' property. At least I haven't been able to find any way of including any additional parameters, and looking at the source seems to indicate it isn't possible.

    Are you saying that the latest SVN version will allow me to send additional parameters with the destroy request?

    Thanks,
    -Chris
    Last edited by r3ap3r; 30 Sep 2009 at 12:48 AM. Reason: destroy event should have read destroy request

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