2 Replies Latest reply on Oct 17, 2013 10:51 AM by mrslother

    How to set myDoc.modified = false?

    mrslother

      When a document is saved my beforeSave event handler changes the doc a bit then the afterSave undoes the change (long story described in another thread). Undoing the changes with afterSave puts the doc back to how it was before the save occured, but ID thinks that the doc is not changed and wants to save it again. With this strategy the doc is never in a "saved" state.

       

      the Document.modified property is read only. Is there any way to forcibly change it to false? I was able to set myDoc.properties.modified to false without error, but either it was not changed or immediately overridden with 'true'.

       

      Is there any way to do this?