[Progress Communities] [Progress OpenEdge ABL] Forum Post: BindingSource:RefreshAll() - Suppress Position getting reset to 0

  • Thread starter Thread starter Lieven De Foor
  • Start date Start date
Status
Not open for further replies.
L

Lieven De Foor

Guest
When calling the BindingSouce:RefreshAll() method, the current Position seems to get lost and reset to 0. Is this intended behavior? Can it be suppressed? I'm currently creating a custom BindingSource which has SuspendPositionChanged/ResumePositionChanged methods so I can suppress any listeners from getting the event when calling RefreshAll + reset original position, but not having the position change at all would be even better. Anyone from Progress can comment on this? DEFINE VARIABLE BindingSourcePosition AS INTEGER NO-UNDO. BindingSourcePosition = BindingSource:Position. BindingSource:SuspendPositionChanged(). BindingSource:RefreshAll() BindingSource:Position = BindingSourcePosition. BindingSource:ResumePositionChanged(). /* And nobody noticed a thing... */

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