WPCubed Product Support

forcing onChange

How can I absolutely positively without exception force onChange to fire on my DBWPRichText whether anything was changed or not?

I'm still having problems where some things just will not force the onChange, despite calling Changing and ChangeApplied.

#1 ♥ 0
5.1k Views 2 users read 2 min
support

Hi,

"positively without exception" screems for a non DB TWPRichText. There YOU are under control when and how to post the data. The Changing methods will call the changing of the attached field, but what then happens is controlled by the datasource.

Julian

#2 ♥ 0

I don't have the option of changing it at this point.

There's not a way to force the changed flag in the data aware rtf?

Changing
MergeText
ChangeApplied

Doesn't seem to work.

I'm confused on how, if the text in the rtf visibly changes or it's font or style visibly changes, meaning the RTF is aware of a change and has redrawn it on the screen, why it doesn't update the changed flag.

#3 ♥ 0
support

Hi,

I am pretty sure it is something else. Please make sure to set the datset to edit mode before You do the changes. Otherwise it is possible that the changes are reverted to the previous state, when Changing is executed.

You can test "Modified" - it is set by Changing and reflects the change.

Julian

#4 ♥ 0
This category is archived. No new posts are possible.