A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of Item contained in Array

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 ?

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of Item contained in Array

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

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of Item contained in Array

Closed.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Query of Item contained in Array

Have you managed with this?

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of Item contained in Array

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

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of Item contained in Array

Nope

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Query of Item contained in Array

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

A.W.H.
Posts: 0
Joined: Sat Jun 20, 2015 7:02 am

Query of Item contained in Array

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

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Query of Item contained in Array

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

Return to “Issues”