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.
Home / DeveloperSection / Forums / Different between find and findExact method in Sencha Touch
Anonymous User
24-Jul-2013Hi 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!!