I don't think you are using save callbacks ... but could you use a save
callback to create a different event than DocumentSaving and listen for
that instead?
On Wed, Feb 25, 2015 at 11:09 AM, Clay Helberg <->
wrote:
> Hi Ed--
>
>
>
> I'm not sure about explicitly controlling the order of callbacks and AOM
> events. (It's not clear whether your Editor customizations are ACL using
> callbacks or AOM using event listeners.)
>
>
>
> One approach you might consider trying: instead of basing your
> customizations on callbacks or events, you might be able to intercept the
> save triggers directly, so you can do your close-out operations, and then
> trigger the DocumentSaving event by explicitly calling save() (or
> ADocument.save()). In other words something like this:
>
>
>
> alias FileSave my_save();
>
>
>
> function my_save(doc = current_doc()) {
>
> # do my custom stuff
>
> prep_doc_for_save(doc);
>
> # do the save and generate the DocumentSaving event
>
> doc_save(doc);
>
> }
>
>
>
> You would probably have to alias a handful of commands, including
> FileSave, FileSaveAs, FileSaveAll, as well as any customizations you may
> have that can trigger a save in some other way.
>
>
>
> --Clay
>
>
>
> *From:* Benton, Ed L [
> 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 extra...