TDBRichViewEdit - updating record without calling .post
Posted: Tue Nov 04, 2014 2:23 pm
Hi,
I have a TDBRichViewEdit on a modal form. Its used for more advanced editing features -- there is a smaller TDBRichView on the main editing form.
When the user has finished editing on the modal form, the form is just closed (i.e. Dataset.Post is not called as I don't want to affect other fields).
The problem is that the record isn't updated with changes to the TDBRichViewEdit unless it first loses focus.
I tried calling TDBRichViewEdit.'Update', 'Change' and even 'Format' in FormClose or FormCloseQuery, but it didn't have the desired effect.
I have worked around this by adding cmbFontSize.SetFocus in the FormCloseQuery event, which forces the change of focus.
I wondered is there a specific method to force update the record?
Thanks
I have a TDBRichViewEdit on a modal form. Its used for more advanced editing features -- there is a smaller TDBRichView on the main editing form.
When the user has finished editing on the modal form, the form is just closed (i.e. Dataset.Post is not called as I don't want to affect other fields).
The problem is that the record isn't updated with changes to the TDBRichViewEdit unless it first loses focus.
I tried calling TDBRichViewEdit.'Update', 'Change' and even 'Format' in FormClose or FormCloseQuery, but it didn't have the desired effect.
I have worked around this by adding cmbFontSize.SetFocus in the FormCloseQuery event, which forces the change of focus.
I wondered is there a specific method to force update the record?
Thanks