[progress Communities] [progress Openedge Abl] Forum Post: Re: How To Define Initial...

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello Wolfgang, If you are using Kendo UI Builder 1.0, please check that Ortsliste is in lowercase: $scope.Ortsliste.options.dataSource.sort={field: "obez"}; If you are using kendo UI Builder 1.1, your code would need to look like the following: onShow: function($scope, customData) { this.scope = $scope; $scope.model.options.dataSource.sort = function() { return {field: "CustNum", dir: "desc"}; } }, You can use the JavaScript Debugger to query the properties of $scope. By default the sort option is processed on the client side. You can unckeck the "Client-side Processing" option in the Edit Data Source dialog to enable the server-side processing: server paging, server filtering and server sorting. The sort expression (orderBy) is sent to the server with server-side processing enabled. I believe that you have already enabled the JFP in your Business Entity following the sample shown in the documentation: documentation.progress.com/.../index.html It is important to highlight that the server-side sorting is implemented by using a "seq" field in the temp-table definition. DEFINE TEMP-TABLE ttCustomer BEFORE-TABLE bttCustomer ... FIELD seq AS INTEGER INITIAL ? ... INDEX seq IS PRIMARY UNIQUE seq .... The seq field is set when resolving the query with the sorting. The result is then returned using the order of the primary index which corresponds to the specified sorting. This also enables sorting the grid dynamically when using the "Enable Sorting" option. Please try these suggestions and let me know how it goes. Cheers, Edsel

Continue reading...
 
Status
Not open for further replies.
Back
Top