1. #1
    Ext User franzisk's Avatar
    Join Date
    May 2007
    Posts
    163
    Vote Rating
    0
    franzisk is on a distinguished road

      0  

    Question What is the difference? Ext.data.Store

    What is the difference? Ext.data.Store


    What is the difference between this:

    Code:
    ds.load({params:{start:0, limit:records_per_page}});
    and

    Code:
    ds.baseParams = {"filter_col":filterCol,
    			"filter_name":value, 
    			"filter_type":filterType,
    			"search_cols":strCols};
    ds.load({params:{start: paging.cursor, limit: paging.pageSize}});

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    baseParams are sent with every request.

    If you create a PagingToolbar (see docs), it will use the last "limit" sent when it requests subsequent pages, but it knows nothing about any other params your server may need. Those other params should be in baseParams.

  3. #3
    Ext User franzisk's Avatar
    Join Date
    May 2007
    Posts
    163
    Vote Rating
    0
    franzisk is on a distinguished road

      0  

    Default


    Ok, that's my problem.

    Suppose I have my grid completed and than I want to send another query (by clicking in a menu item on a toolbar) and this time I need to send some params (ie: "filter_name"), do I need to call ds.load(..), call ds.baseParamns(...) or both?

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You want to requery the database, and reload the grid with the results of the new query? So these params are just for the initial load?

    I think you just need

    Code:
    ds.load({
        params:{
            start: 0;
            limit: // whatever number of records per page you want
            "filter_col":filterCol,
    	"filter_name":value, 
    	"filter_type":filterType,
    	"search_cols":strCols
        }
    });

Thread Participants: 1

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