Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How to retrieve distinct values from a collection?

Hello,

Please try to use distinct query once more. It should work now.

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

How to retrieve distinct values from a collection?

Ok, got it to work. Had to use the POST method. The GET method does not work.

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

How to retrieve distinct values from a collection?

Now how do I populate a dropdown list with the result. The above example does not seem to work for a dropdown list.

Thanks in advance.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to retrieve distinct values from a collection?

Hello! To map results to Mobile Select Menu you need to configure your service parameters. The service you use to get distinct values from DB should have the following response structure
Image
There is a dot (.) under response parameter "$"
This service you need to add on screen and create mapping shown on screenshot:
Image

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

How to retrieve distinct values from a collection?

Hello,

I’ve tried to follow the steps above in order to have a list of distinct values of my database (field "COMARCA"), but I ‘m getting “undefined” as result instead of them . Here attached some screenshots of how I have configured the service:

Image

Image

Image

Image

Image

What am I doing wrong?

Return to “Issues”