cancel
Showing results for 
Search instead for 
Did you mean: 

How to recongize if the user has changed the content of an Office Control

barbara_bendjama
Explorer
0 Kudos

Dear colleague,

I have implemented an office control to change a word document. I am using the expert mode.

I do not react on windows toolbar, but provide toolbar button to 'Save' and 'Close'.

When the user press 'Close', I need to check if the document has been changed to send a confirmation prompt.

Currently, when the document is open, or when it is saved on database, I store the value of XDATA in a controller variable, and I check changes by comparing the saved value with the one which is in my context element.

If I open the document and don't change it, the comparison works fine. No changes are detected.

If I open the document, do some change, save and save again, the comparison fails and system did not recongize that the version on the UI has not been changed since the last DB update.

How can I know if the document has been changed or not?

Thanks for your help,

Barbara

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

There may be a work around when you use context change log to see the actual changes in the context. Otherwise you need to compare the xstring which is tedious process.