Confirmation Popup on click of button
Oxygen general issues.
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Confirmation Popup on click of button
Post by alex_jitianu »
Hello,
The fastest way I can think of is with an XQuery Update script that uses a bit of Java reflection to present a dialog:
The button is added like this:
In this example the script sits in a file named delete.xquery, next to the CSS.
Another option would be to create a custom author operation that present the dialog and removes the fragment as well.
Best regards,
Alex
The fastest way I can think of is with an XQuery Update script that uses a bit of Java reflection to present a dialog:
Code: Select all
declare namespace jop = "java:javax.swing.JOptionPane";
let $result := jop:showConfirmDialog(null, "Delete element", "Confirm", 0)
return if ($result = 0) then (
delete node .
) else ()
Code: Select all
element:after {
content: oxy_action(
name, 'Delete',
description, 'Delete',
operation, 'XQueryUpdateOperation',
arg-script, oxy_url('delete.xquery')
)
}
Another option would be to create a custom author operation that present the dialog and removes the fragment as well.
Best regards,
Alex
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