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

Method for a List with Distinct Values?

Hello,

I’ve tried to follow the steps given in this post:

https://getsatisfaction.com/apperyio/topics/how_to_retrieve_distinct_values_from_a_collection

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Method for a List with Distinct Values?

Hi Marc,

Tick "Array" for $, untick for other parameters.

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

Method for a List with Distinct Values?

Thanks for your reply, Katya.

I've proceed as adviced, but,unfortunately, with the same results:

Image

Image

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

Method for a List with Distinct Values?

However, the test request to the URL suceeds to retrieve the distinct values:

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Method for a List with Distinct Values?

Marc,

Create Response parameters in service Test tab. Your service returns an array of strings without ADRECA, TELEFON etc.

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

Method for a List with Distinct Values?

Sorry, but I don't understand what you want me to do (newbie by now).

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Method for a List with Distinct Values?

Marc,

Open your Service, Response Tab. You'll see 'Test' button. Click it. Then click 'Automatically create response parameters'. The parameters will be created based on actual service response.

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

Method for a List with Distinct Values?

OK Katya, I did it and then mapped a new "dot" parameter to the mobilelistitem. It works now, but just populates the list with the first item. How can I retrieve the rest of items?

Image

Image

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

Method for a List with Distinct Values?

Hello,

Please attach screen shot with your Database Collection fields like in tutorial http://docs.appery.io/tutorials/build...

It looks like you missed some steps from our tutorial.

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

Method for a List with Distinct Values?

Please share app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.

Return to “Issues”