1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    29
    Vote Rating
    0
    nmohan.025 is on a distinguished road

      0  

    Default assigning ds to form and submiting

    assigning ds to form and submiting


    How to assign ds to form, so that it will submit through data store's url...

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    A form has it's own load and submit handling. It doesn't use a store.

  3. #3
    Sencha User
    Join Date
    Aug 2010
    Posts
    29
    Vote Rating
    0
    nmohan.025 is on a distinguished road

      0  

    Default


    ok...

    ds.baseParams=Ext.getCmp('simple_search').getForm().getValues();
    Ext.getCmp('simple_search').getForm().submit({
    params:{limit:10},
    success:function(form,action)
    {
    ds.loadData(action.result);
    }});

    Here i don't want to set baseparams and params, but without baseparams paging is not working..i need to to set baseparams and params only in datastore...
    If you have any solution help me...

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    OK, so you want to use the form as a filter for a store. That is something completely different!

    In that case you shouldn't submit the form, but load the store with the parameters as baseParams, e.g.
    Code:
    ds.baseParams = Ext.getCmp('simple_search').getForm().getValues();
    ds.load({params: {start: 0, limit: 10}});

  5. #5
    Sencha User
    Join Date
    Aug 2010
    Posts
    29
    Vote Rating
    0
    nmohan.025 is on a distinguished road

      0  

    Default


    i can load ds with params but i have to do it with form submission only....

  6. #6
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Quote Originally Posted by nmohan.025 View Post
    i can load ds with params but i have to do it with form submission only....
    Why? Do you also have custom error checking?

    In that case you could use:
    Code:
    Ext.getCmp('simple_search').getForm().submit({
      ...
      params: {start: 0, limit: 10},
      success: function(form, action){
        // added to support paging
        ds.baseParams = Ext.getCmp('simple_search').getForm().getValues();
        ds.lastOptions = {params: {start: 0, limit: 10}};
        ds.loadData(action.result);
      }
    });

Similar Threads

  1. Form submiting
    By Georgioa in forum Ext.Direct
    Replies: 3
    Last Post: 25 Jun 2009, 1:40 AM
  2. Submiting a form doesn't work... Why ?
    By alexbariv in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 2 Jun 2009, 2:21 PM
  3. submiting Grid's values using form submit
    By extjslearner in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 23 Feb 2009, 4:55 AM
  4. Correct way of submiting form
    By psaraf in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 3 Oct 2008, 9:19 AM
  5. Form is not submiting
    By psaraf in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 27 Sep 2008, 5:07 AM

Thread Participants: 1

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