Update value of a table field from formDatasource.modified

Setting a value to a table buffer doesn’t update the record in database. It happens only if you call insert(), update() or write(). If you reread the buffer from database, your change would be lost.

Therefore you have two options:

  • let method() read the value from the same, unsaved buffer
  • save the buffer to database before calling method()

Note that saving a record in modified() is not something what users expect and it may fail, e.g. if some mandatory fields haven’t been filled in.