08-29-2016 08:48 PM
09-15-2016 09:12 AM
The REST API used to retrieve data list items does not support sort parameters. The sorting is handled on the client side. Sorting is handled in the datagrid.js file (which defines the Alfresco.component.DataGrid), in the function returned by getSortFunction.
I think the best option is going to be to extend the DataGrid widget to extend both onActiveDataListChanged function so that the sort function is called when a data list is loaded.
This blog post describes how you can extend YUI2 widgets. The WebScript to extend will be the datalists.get.js JavaScript controller (to change the widget that is instantiated) and the datalists.get.html.ftl template to include the custom widget.
09-15-2016 09:12 AM
The REST API used to retrieve data list items does not support sort parameters. The sorting is handled on the client side. Sorting is handled in the datagrid.js file (which defines the Alfresco.component.DataGrid), in the function returned by getSortFunction.
I think the best option is going to be to extend the DataGrid widget to extend both onActiveDataListChanged function so that the sort function is called when a data list is loaded.
This blog post describes how you can extend YUI2 widgets. The WebScript to extend will be the datalists.get.js JavaScript controller (to change the widget that is instantiated) and the datalists.get.html.ftl template to include the custom widget.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.