Home > DeveloperSection > Forums > Different between find and findExact method in Sencha Touch
Samuel Fernandes
Samuel Fernandes

Total Post:156

Points:1096
Posted on    June-14-2013 6:51 AM

 Sencha Touch Sencha Touch 
Ratings:


 1 Reply(s)
 2093  View(s)
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. 


Arun Singh

Total Post:68

Points:476
Posted on    July-24-2013 8:15 AM

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!!


Don't want to miss updates? Please click the below button!

Follow MindStick