I am building a app for performing CRUD operations into a database. There is a part where data is fetched from the db in a datatable, which is bound to a custom list in the app. The data is displayed perfectly without issues.
I also want to add a sort functionality, and I do not want to again do this via the robot, due to run time concerns. So I tried to use the Sort function in the data source for the list:
Thanks a lot for your quick feedback.
Is there any way to achieve this?
For example, would it work if I change the datatable to an array, for instance?
Best approach is just sort the data table into UI path studio itself and at run time use the default run time sort order click button of table to click on columns.
Thanks a lot for your suggestion.
I would still like to use a custom list with the sort drop down in the app.
I would also like to try sorting the tables in the processes and maybe passing back two tables with ascending and descending results.
Then maybe an app variable can help bind my list to the correct datatable according to the sort option…
Is this a good approach?
Sorting the tables in the process and maybe passing back two tables with ascending and descending results.
Then maybe an app variable can help bind my list to the correct datatable according to the sort option?
But of course direct integration will be the first approach. If it’s not gonna work then yes we can go which may utilise bot license and a bit of slowness will be involved in app.
For processes, Sort function supports only simple array (String, numeric, etc.). It doesn’t support data-table (Which is an array of complex objects).