Require user to confirm global changes

Post here questions and problems related to oXygen frameworks/document types.
Posts: 48
Joined: Sat Jan 07, 2017 1:23 am

Require user to confirm global changes

Post by mboudreau » Sat Dec 14, 2019 1:51 am

I have created a pair of Actions for editing a journal article:
  • Convert CURRENT underline element to italic
  • Convert ALL underline elements to italic
If the user chooses the "Convert ALL" action, I'd like to present a confirmation dialog that warns this is a global action that cannot be undone. Is there a way to do this, similar to using the ${ask()} editor variable?

Posts: 7032
Joined: Fri Jul 09, 2004 5:18 pm

Re: Require user to confirm global changes

Post by Radu » Mon Dec 16, 2019 11:28 am


There is an Author default operation called JSOperation which can be called from an Author action and which can use Javascript code to call various Java APIs from Oxygen: ... soperation

It can also show a Java JOptionPane asking the end user various things. There is a sample project here showing various use cases: ... operations

Radu Coravu
<oXygen/> XML Editor

Post Reply