Distinguishing between autosave and manual save events
Oxygen general issues.
-
- Posts: 83
- Joined: Wed May 20, 2009 1:18 pm
Distinguishing between autosave and manual save events
Hi all,
I'm having another problem whilst implemeting my custom protocol handler and was wonderring if any one can assist.
I have implemented a custom protocol handler that uses a webservice to open and save documents. This handler will store local copies of files if the webservice isn't available when a save event occurs. There is a requirement to perform save opertaions on open docuemnts automatically every minute. We would prefer not to call the webservice save method evey minute and therefore we thought we might use the local files to peform the minute saves, and then call the webservice every 10 minues or so.
This is reletively easily implemented, however when a user peforms a manual save we need to commit to the webservice regardless of how long its been since the last webservice save.
Is there any way to distinguish between a save event triggered from an automatic save and one triggered from a manual action? If not, what would you suggest to provide the required functionality? Could the protocol handler spawn its own saving thread to periodically save to the localfile/webservice?
Any advice gratefully received.
Simon.
I'm having another problem whilst implemeting my custom protocol handler and was wonderring if any one can assist.
I have implemented a custom protocol handler that uses a webservice to open and save documents. This handler will store local copies of files if the webservice isn't available when a save event occurs. There is a requirement to perform save opertaions on open docuemnts automatically every minute. We would prefer not to call the webservice save method evey minute and therefore we thought we might use the local files to peform the minute saves, and then call the webservice every 10 minues or so.
This is reletively easily implemented, however when a user peforms a manual save we need to commit to the webservice regardless of how long its been since the last webservice save.
Is there any way to distinguish between a save event triggered from an automatic save and one triggered from a manual action? If not, what would you suggest to provide the required functionality? Could the protocol handler spawn its own saving thread to periodically save to the localfile/webservice?
Any advice gratefully received.
Simon.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Distinguishing between autosave and manual save events
Post by sorin_ristache »
Hello,
There is no way to distinguish between the two save events. If you need to commit to the webservice in case of a manual save regardless of the time interval from the last save I think the protocol handler should spawn its own saving thread.
Regards,
Sorin
There is no way to distinguish between the two save events. If you need to commit to the webservice in case of a manual save regardless of the time interval from the last save I think the protocol handler should spawn its own saving thread.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service