Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To be safe, call either MyBrowse.UpdateBuffer (which fetches the highlighted record from the queue and updated the corresponding fields in the record), or MyBrowse.UpdateViewRecord (which additionally fetches the record from the database). Do this rather than Dave's suggestion of Avoid low level code like GET(Queue:Browse:1,CHOICE(?Browse:1)).

AlternativelyAlso, I often want the user's "click" to fire some code, even if the record hasn't changed. That's why I'll often use the TakeAccepted handler for the control event, rather than (or in addition to) the browse class' TakeNewSelection method.

...