[progress Communities] [progress Openedge Abl] Forum Post: Re: Batching And Sortorder...

  • Thread starter Thread starter bart.syryn
  • Start date Start date
Status
Not open for further replies.
B

bart.syryn

Guest
Hi, Well I'm setting the next-rowid the following way: DATA-SOURCE srcpost:RESTART-ROWID(1) = P_startrowid_post. When I don't set the sortindicator, the offend trigger works just fine. It just doens't work when I set my sortindicator on the ultragrid: ultraGridpost:DisplayLayout:Bands[0]:Columns["plaats"]:SortIndicator = SortIndicator:ASSCENDING. The offend triggers looks like this: METHOD PRIVATE VOID bindSrcpost_OffEnd( INPUT sender AS System.Object, INPUT args AS Progress.Data.OffEndEventArgs ): MESSAGE "offend" VIEW-AS ALERT-BOX. IF BUFFER tt-post:LAST-BATCH = NO THEN DO: /* Fetch the next batch */ RUN get-post(INPUT-OUTPUT G_startrowid_post, INPUT G_batchsize_post, /* set to 20 */ INPUT 'FOR EACH post BY plaats', OUTPUT DATASET dspost APPEND). END. DATASET dspost:TOP-NAV-QUERY(1):QUERY-OPEN (). args:RowsAdded = 20. /* where 20 need to be set with the number of extra results, but for testing purposes set to 20 because that is the number of rows that need to be read */

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