Running framework code on document open event
Oxygen general issues.
-
- Posts: 16
- Joined: Fri Mar 20, 2015 2:29 pm
Running framework code on document open event
I've got a custom framework that defines several operations users can invoke from menus or through hotkeys. For example an operation could be to contact an external web service and insert an XML fragment in the current document based on the response.
What I need now is to invoke one of those operations automatically whenever a new document (that is associated with that framework) is opened. Is there a way to do this?
I know I could do it easily via a plugin but I don't want to duplicate my code if it was possible.
What I need now is to invoke one of those operations automatically whenever a new document (that is associated with that framework) is opened. Is there a way to do this?
I know I could do it easily via a plugin but I don't want to duplicate my code if it was possible.
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Running framework code on document open event
Hi,
The only way to invoke the operation when the document is opened is to create a plugin (as you already said).
A custom action can be also invoked through CSS, by using the oxy_action() function, but this action should be associated with a button form control.You cannot invoke it on document open.
Best Regards,
Mihaela
The only way to invoke the operation when the document is opened is to create a plugin (as you already said).
A custom action can be also invoked through CSS, by using the oxy_action() function, but this action should be associated with a button form control.You cannot invoke it on document open.
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
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