Question
Requesting some deeper than usual information
Greeting Adepters,
This post is asking for a little more detailed information about Editor's inner workings than we usually see here, but like the saying goes, "If you don't ask, you don't get."
We have created an application which uses PTC Arbortext Editor for editing of XML documents. It initiates a document editing session and is notified of any save action by means of DocumentSaving event. We have Editor customizations that perform a set of data extraction and persistence operations that are executed as part of any document save request. The main application listens for the DocumentSaving event to refresh itself according to the current document state and the extracted data.
We have run into a sequencing issue related to the invocation of DocumentSaving event and the execution of our Editor save customization. When a save request is made by the user, Arbortext Editor will immediately raise the DocumentSaving event. Our save customizations do not get executed until after the event handler of the listener has completed. This results in the main application refreshing itself with data that does not represent the current state of the document as it exists within the Editor.
Is there a way of controlling how or when the DocumentSaving event is invoked by the Editor in order to allow our save customizations to be executed before the event is invoked?
This post is asking for a little more detailed information about Editor's inner workings than we usually see here, but like the saying goes, "If you don't ask, you don't get."
We have created an application which uses PTC Arbortext Editor for editing of XML documents. It initiates a document editing session and is notified of any save action by means of DocumentSaving event. We have Editor customizations that perform a set of data extraction and persistence operations that are executed as part of any document save request. The main application listens for the DocumentSaving event to refresh itself according to the current document state and the extracted data.
We have run into a sequencing issue related to the invocation of DocumentSaving event and the execution of our Editor save customization. When a save request is made by the user, Arbortext Editor will immediately raise the DocumentSaving event. Our save customizations do not get executed until after the event handler of the listener has completed. This results in the main application refreshing itself with data that does not represent the current state of the document as it exists within the Editor.
Is there a way of controlling how or when the DocumentSaving event is invoked by the Editor in order to allow our save customizations to be executed before the event is invoked?

