Hybrid View

  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    1
    mahdi.heydari is on a distinguished road

      1  

    Default Problems with store filter function

    Problems with store filter function


    As stated in store, filter method documentation
    Alternatively, if filters are configured with an id, then existing filters store may be replaced by new filters having the same id.
    But when you look at filter method source code you can see
    Code:
    me.snapshot = me.snapshot || me.data.clone();
    me.data = me.data.filter(me.filters.items);
    With this code if i have a filter for example with id "x" and filter store with this, then filter store again with another filter with id "x", new filter with id "x" replace with previous filter in "filters" attribute of the store, but result of filter would be join of new "x" and previous "x" filter.
    Developers expect that replacing occur in result too.

  2. #2
    Sencha User
    Join Date
    Jun 2013
    Location
    Overland Park, KS
    Posts
    5
    Vote Rating
    1
    watertrac_dev is on a distinguished road

      0  

    Default Fixed in 4.2.0

    Fixed in 4.2.0


    I thought I was encountering the same issue in 4.2.0, but inspecting the code shows that this has been resolved:

    Code:
    me.snapshot = me.snapshot || me.data.clone();
    
    
    // Filter the unfiltered dataset using the filter set
    me.data = me.snapshot.filter(me.filters.items);
    The cause of my issue was that I had failed to set the queryMode on my combobox to "local" which was causing an overwrite of the snapshot data.

Thread Participants: 1

Tags for this Thread

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