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

  • Thread starter Thread starter p4m
  • Start date Start date
Status
Not open for further replies.
P

p4m

Guest
Hello Edsel, thanks for your hints. Changing the primary index in the temp-table works fine for client-side processing, with serverside paging it only sorts the results of each page returned bs the server. This will probably happen with sorting onShow. I tried sorting onShow as described by you, but I always get the error angular.js:13424 TypeError: Cannot read property 'options' of undefined at LandOrtsliste.onShow (view-factory.js:22) My app's name is Land and the view is called Ortsliste I tried $scope.Ortsliste.options.dataSource.sort={field: "obez"}; and $scope.LandOrtsliste.options.dataSource.sort={field: "obez"}; I get the same error To get the right sorting with serverside pagind, it is necessary to add a "use-index" or "by" clause to the query-statement. There is a capability "orderBy" in the business entity for serverside paging @openapi.openedge.method.property (name="mappingType", value="JFP"). @openapi.openedge.method.property (name="capabilities", value="ablFilter,top,skip,id,orderBy"). So the question is, how to define an initial value for the orderBy-value. best regards Wolfgang

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