User Tools

Site Tools


resetfromview_reset_browse_from_current_result_set_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== ResetFromView (reset browse from current result set) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ResetFromView, VIRTUAL

blk2blue.jpg

The ResetFromView method resets the BrowseClass object to conform to the current result set.

TipBox.jpg

Use ResetFromView when you want to reset for any changes that may have happened to the entire record set, such as new records added or deleted by other workstations. For large amounts of records (data), this can cause a slow down in browse performance.

Implementation:

The SetSort method calls the ResetFromView method.

The ResetFromView method readjusts the scrollbar thumb if necessary. The ABC Templates override the BrowseClass.ResetFromView method to recalculate totals if needed.

Example:

BRW1.ResetFromView PROCEDURE

ForceRefresh:Cnt  LONG

CODE

SETCURSOR(Cursor:Wait)

SELF.Reset

LOOP

 CASE SELF.Next()

 OF Level:Notify

  BREAK

 OF Level:Fatal

  RETURN

 END

 SELF.SetQueueRecord

 ForceRefresh:Cnt += 1

END

ForceRefresh = ForceRefresh:Cnt

SETCURSOR()

resetfromview_reset_browse_from_current_result_set_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1