Hi,
I would like to know how to display the newest additions ( rows ) to the database the first thing in the list. To be acting like a stack not a queue.
Thanks.
Hi,
I would like to know how to display the newest additions ( rows ) to the database the first thing in the list. To be acting like a stack not a queue.
Thanks.
Hi Louay,
You need to use "sort" parameter with value "_updatedAt".
Details: http://prntscr.com/5gz868/direct
More details about sorting here: http://devcenter.appery.io/documentat...
Regards.
Ok, that works fine if i am using the Test feature in the service itself.
How can i apply that on the database of the app itself ?
Hi Loyay,
You need to:
Add service datasource on the page.
Click "Before send" mapping.
In request "sort" put value "_updatedAt".
Okay from this time when you will invoke this server datasource it will send this sort parameter.
Details: http://prntscr.com/5jwqzh/direct
Regards.
Hi Yurii, Thanks for your help.
I did what you said, but it doesn't yet work. If i clicked : "Test" from inside the service, it works fine, but it doesnt work on the screen itself when the service is invoked on page show.
Any more help ?
Hello!
1) If it doesn't work in the tester, then you have made a mistake somewhere in the mapping, or there was an error on the page
2) Could you please show us the mapping for your service?
3) Also please open the console before launching the service to see coming error.
Hi Louay,
Your mapping seems to be correct.
Please show us your app public link and describe steps to reproduce this problem.
Regards.