PDA

View Full Version : Sending params to ArrayStore



guys2008
19 Nov 2010, 2:05 PM
Hey,
I'm trying to send params to an ArrayStore I have, in order to filter it.
My ArrayStore looks like that :


[{"uid":"51397","url":"171397_0.jpg","yaw":8.08},
{"uid":"5771397","url":"5397_0.jpg","yaw":18.08}]

Can I use the params option in the Load method ? (and send smtng like uid:'5771397') ??

Thanks,

plalx
20 Nov 2010, 6:34 AM
If you want to do some local filtering on your ArrayStore, you can use the filter and filterBy methods, for remote filters, you can send params when using the load method and use them to filter on the server side.

guys2008
20 Nov 2010, 7:59 AM
In the end, that's what I actually did...
And it actually did the trick..

Thanks ! :)