Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== UpdateViewRecord (get view data for the selected item) ![]() | ![]() ![]() ![]() |
UpdateViewRecord, VIRTUAL
The UpdateViewRecord method regets the browse's VIEW record for the selected browse list item (using PROP:Selected from the associated list control) so the VIEW record can be written to disk. The UpdateViewRecord method arms automatic optimistic concurrency checking so the eventual write (PUT) to disk returns an error if another user changed the data since it was retrieved by UpdateViewRecord.
Implementation:
The UpdateViewRecord method uses WATCH and REGET to implement optimistic concurrency checking; see the Language Reference for more information.
Example:
IF FIELD() = ?ChangeButton !on change button
IF EVENT() = EVENT:Accepted !if button clicked
MyBrowse.UpdateViewRecord !refresh buffers and arm WATCH
DO MyBrowse:ButtonChange !call the update routine
END
END