User Tools

Site Tools


updateviewrecord_get_view_data_for_the_selected_item_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== UpdateViewRecord (get view data for the selected item) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

UpdateViewRecord, VIRTUAL

blk2blue.jpg

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

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