Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    670
    Vote Rating
    0
    Dumbledore is on a distinguished road

      0  

    Default [4.2.1 744] treestore load params

    [4.2.1 744] treestore load params


    Hi!

    whats wrong on this code?

    Code:
            // store is a treestore
            store.load({
                params : {
                    cache_bypass : e.shiftKey
                },
                callback : function(records, operation, success){
                    console.warn(operation);
                }
            })
    the param cache_bypass will not send!?

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,904
    Vote Rating
    177
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    cache_bypass is not sent or the value is not sent with it?

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    670
    Vote Rating
    0
    Dumbledore is on a distinguished road

      0  

    Default


    cache_bypass will be sent, because it is defined in the stores prxy definition:

    Code:
            type    : 'rest',
            url     : 'nws/',
            extraParams : {
                cache_bypass : false
            },
            reader  : {
                type            : 'json',
                root            : 'data',
                totalProperty   : 'total'
            }
        }
    i thought that the value will be overwritten when i load a store via:

    Code:
            store.load({
                params : {
                    cache_bypass : e.shiftKey
                }
            })

    currently i use following workaround:

    Code:
            store.proxy.extraParams = {
                cache_bypass : e.shiftKey
            };
    
            store.load({
                params : {
                    cache_bypass : e.shiftKey
                }
            })

  4. #4
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,904
    Vote Rating
    177
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Ok. You can also use setExtraParams()
    http://docs.sencha.com/extjs/4.2.1/#...-setExtraParam
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

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