Page 2 of 3

How can I sort by different things depending on which select menu option is clicked?

Posted: Mon Jan 26, 2015 3:44 am
by Ellen Schlechter

I followed those steps exactly but it didn't work. I noticed that you have some sort of JS that you run. Do I need that?

Also, no erros in the console.


How can I sort by different things depending on which select menu option is clicked?

Posted: Wed Jan 28, 2015 5:42 pm
by Ellen Schlechter

Does anyone have any advise?


How can I sort by different things depending on which select menu option is clicked?

Posted: Thu Jan 29, 2015 7:44 pm
by Illya Stepanov

Hi -

You need to have only one parameter.
Appery.io DataBase doesn't know about your SortA, B , or anything else, it works with its own implementation "sort".
So, you need to change value for parameter sort every time you changing sort order in your select menu.


How can I sort by different things depending on which select menu option is clicked?

Posted: Fri Jan 30, 2015 4:47 am
by Ellen Schlechter

How exactly do I do that?


How can I sort by different things depending on which select menu option is clicked?

Posted: Fri Jan 30, 2015 6:17 pm
by Alena Prykhodko

Hello Ellen,

First you should think this logic, then sort data http://devcenter.appery.io/documentat...


How can I sort by different things depending on which select menu option is clicked?

Posted: Sun Feb 01, 2015 6:14 am
by Ellen Schlechter

I have this sort parameter so if I have the column names in the properties of the select menu, then map it to the sort column, it should work, right? Would I do it in the before send or the success?? Image


How can I sort by different things depending on which select menu option is clicked?

Posted: Tue Feb 03, 2015 11:31 pm
by Yurii Orishchuk

Hi Ellen,

show us datasource "before send" mapping and screen shot of actual service request(where we can see request parameters and headers).

Bruce, Great explanation :)

Thanks & regards.


How can I sort by different things depending on which select menu option is clicked?

Posted: Wed Feb 04, 2015 5:05 am
by Ellen Schlechter

This is the mapping: Image

This is how the variable is set: Image

These are the properties:
Image

Then this is the service request: Image


How can I sort by different things depending on which select menu option is clicked?

Posted: Thu Feb 05, 2015 11:19 pm
by Yurii Orishchuk

Hi Ellen,

You use wrong parameter name: "Sort" instead of "sort".

See more info in documentation: http://devcenter.appery.io/documentat...

Details: http://prntscr.com/61kg77/direct

Regards.


How can I sort by different things depending on which select menu option is clicked?

Posted: Fri Feb 06, 2015 5:45 am
by Ellen Schlechter

I tried that and now it thinks about what it wants to do but it still doesn't sort based on what is selected. Image