maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to map a distinct array of results from a column (field) to a list?

Here is another way to do this:

Manually update the response to look like this:
Image

Image

Shaun Summers
Posts: 0
Joined: Thu Jul 25, 2013 3:49 pm

How to map a distinct array of results from a column (field) to a list?

Thanks. A follow up question.

I initially wanted to return a distinct list for a column in the collection. I would now like to return a distinct list for the column but only where values in another column equal X.

How do I do this? I ask the question as the distinct URL seems to just focus on one column and hence even if I include a where clause (for values in another column in the collection equal to X) it makes no difference.

Regards, Shaun.

Shaun Summers
Posts: 0
Joined: Thu Jul 25, 2013 3:49 pm

How to map a distinct array of results from a column (field) to a list?

Thanks. I did look before hand but skipped over it somehow. Thanks.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

How to map a distinct array of results from a column (field) to a list?

I tried this. It does not appear to work with a dropdown list. Is this a bug or just the way REST works ?

I'll try the long way next.

Thanks

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

How to map a distinct array of results from a column (field) to a list?

This works like a charm.

Thank you!

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

How to map a distinct array of results from a column (field) to a list?

I am trying to do the same. I have created the REST service, with a 'where' argument. I can test it and it works fine. However, when I use it in my application it returns an error. I have checked my string construction for the where argument and it is the same as the one I use for the Test.

What am I doing wrong ?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to map a distinct array of results from a column (field) to a list?

Please can you provide some screen shots how you call it from your app?

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

How to map a distinct array of results from a column (field) to a list?

Here are my results from the Test, so I know the query is working.

Image

Image

Below is the string that the app passes to the where parameter.
Image

Below is the jqXHR error.
Image

Hope this helps.

Thanks

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

How to map a distinct array of results from a column (field) to a list?

Hi,

You need to debug your code, I think this page can help. You need to check Network tab for request which your app sends. Or you can show us screenshot of that request -- Headers part with request body and response.

Return to “Issues”