Page 1 of 1

Sorting photos in order they were taken to display on an image page.

Posted: Sun Jan 05, 2014 1:26 pm
by Andrew Clark

Hi - I am sorry tis is a very basic question. I have been able to use camera to take photo and put image on rest db with comment. I have created a second page where I can view image and display comments associated with the photo.

What I am unable to do is effectively sort images. Or display subsequent images taken. That is I can only retrive first image taken.

The question is how can I dispay images and comments in the order they were taken. - I have checked documents and tutorials, however I am unable to find this informartion in a format that I readily understand. Thanks in advance.


Sorting photos in order they were taken to display on an image page.

Posted: Sun Jan 05, 2014 2:13 pm
by Igor

Hi,

You can use sort request parameter when retrieving data from database. http://docs.appery.io/documentation/b...


Sorting photos in order they were taken to display on an image page.

Posted: Sun Jan 05, 2014 2:18 pm
by Andrew Clark

Hi Igor

Thanks for vry quick response. I was just looking at request parameter using sort. I just tried sort and -_createdAt so as to reverse order responses.

However when I tried test, it said was succesful but did not reverse order the responses. Did I miss something in documents.

Andrew


Sorting photos in order they were taken to display on an image page.

Posted: Mon Jan 06, 2014 5:09 pm
by Maryna Brodina

Hello! Could you post screenshots from service settings and Test tab?