Results 1 to 3 of 3

Thread: Store.loadData doesn't update Snapshot when loadData is called second time

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-428 in a recent build.
  1. #1

    Exclamation Store.loadData doesn't update Snapshot when loadData is called second time

    Sencha Touch version tested:
    • 1.1.0

    • only default ext-all.css
    Platform tested against:
    • iOS 3.x
    • iOS 4
    • Android 2.1
    • Android 2.2
    • Windows Desktop Chrome
    • Windows Desktop Safari
    • Store doesn't updates the Snapshop property everytime LoadData function is called over it. This will cause problem when apply filter to any existing data, then call loaddata again with different set of values. If we clear the filter after loadData, the store will be replaced with the data that was loaded first time. The reason for this issue seems to be loadData function is not updating snapshot property every time it loads data in to store.
    Steps to reproduce the problem:
    • Create new store
    • Load some data in to store using loadData(data, false), let's load 10 records
    • Apply filter, so that it will contain only 5 records.
    • Now load another set of 15 records in to Store using loadData(data, false) function.
    • Call clearFilter() function.
    • Store will contain 10 records that were loaded first time, instead of showing the 15 records
    The result that was expected:
    • Store should still contain the last 15 records that were added to it.
    The result that occurs instead:
    • Store contains the first 10 records that were added.
    Debugging already done:
    • none
    Possible fix:
    • On loadData function, if append variable is passed as "false", the snapshot variable should be updated with new set of data.

  2. #2
    Sencha - Engineering Operations
    Join Date
    Mar 2011
    Redwood City, CA


    thanks for the report, got it filed as TOUCH-428

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Haarlem, Netherlands


    This has been fixed as part of the next Touch 2.0 release

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts