Page 1 of 1

Query of Item contained in Array

Posted: Sun Jul 12, 2015 2:28 am
by A.W.H.

Hi, what is the proper code for checking with a query if a user's ID is contained within an array which is a service response from the db ?


Query of Item contained in Array

Posted: Sun Jul 12, 2015 2:50 am
by A.W.H.

Right now this is what I have.... Image Image


Query of Item contained in Array

Posted: Sun Jul 12, 2015 2:53 am
by A.W.H.

Closed.


Query of Item contained in Array

Posted: Sun Jul 12, 2015 3:00 am
by Alena Prykhodko

Have you managed with this?


Query of Item contained in Array

Posted: Sun Jul 12, 2015 3:02 am
by A.W.H.

Sorry, no. It's still giving me a problem...screenshots below. Image Image


Query of Item contained in Array

Posted: Sun Jul 12, 2015 3:03 am
by A.W.H.

Nope


Query of Item contained in Array

Posted: Mon Jul 13, 2015 7:24 pm
by Pavel Zarudniy

Hi Avery,
You should store response with data which contain array.
And than check if ID is in array with function like jquery inArray


Query of Item contained in Array

Posted: Tue Jul 14, 2015 8:04 am
by A.W.H.

What if there are multipel arrays? how do I map from the correct array? variable


Query of Item contained in Array

Posted: Tue Jul 14, 2015 3:12 pm
by Pavel Zarudniy

Hi Avery,
On stage store you can filter unwanted data.