DIFFERENT BETWEEN FIND AND FINDEXACT METHOD IN SENCHA TOUCH

Samuel Fernandes

Total Post:159

Points:1117
Posted by  Samuel Fernandes
 2569  View(s)
Ratings:
Rate this:
Hi Developers,

I'm new in Sencha Touch Development. I have no much information about Sencha Touch. Can you tell me what it different between find and findExact.

Thanks in advance. 
  1. Arun Singh

    Post:68

    Points:476
    Re: Different between find and findExact method in Sencha Touch

    Hi Samuel Fernandes,

    find and findExact both are using for retrieving record from Store but there is only difference is that find method search data in Store as like wildcard whereas findExact searched exact data from store.

    Suppose that store containing following record:

    dummyStore: [{‘Name’: ‘Samuel’ },

                          {‘Name’: ‘Samuel Fernandes’}]

    In the case of dummyStore.find(‘Name’, ‘Samuel’)  it will returns two index (both two record) but in the case of dummyStore.findExact(‘Name’, ‘Samuel’)  it will returns only one index.

     

    I hope it will quite helpful for you. Thanks!!

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!