Page 1 of 1

Custom Operation dialog box in Author mode?

Posted: Mon Jan 13, 2025 7:37 am
by csun
Hi,
It's good to see that it's doable to connect to a database and insert certain data to the XML document, as explained here:
https://www.oxygenxml.com/doc/versions/ ... ments.html

Is it possible to invoke a dialog from the Author mode, display the SQL results there, allowing users to preview, sort, filter, and select certain rows of data to insert to the XML document? Thanks. (I went through the Oxygen XML SDK documentation but didn't seem to find the information about customizing the Operation dialog to that extent; it would be really helpful if it's doable though.)

Re: Custom Operation dialog box in Author mode?

Posted: Mon Jan 13, 2025 9:17 am
by Radu
Hi,
You can use the Java Swing libraries to create your own custom dialogs which are shown when the custom operation you invoke.
Regards,
Radu

Re: Custom Operation dialog box in Author mode?

Posted: Sat Jan 18, 2025 12:12 am
by csun
Thanks for confirming this, Radu. How about displaying a web app in a custom Oxygen dialog window--is that possible, too? (A naive approach I think of is to use jEditorPane.setPage(String url) to read a URL and display that web page, but jEditorPane’s support for HTML and CSS is a bit too limited, and it doesn’t work well for displaying modern web applications.)
I think Oxygen SDK documentation mentions that it offers support for integration as a server side web application with an HTML5 front-end. Does it mean the capability of opening a web app from inside Oxygen Author or Oxygen Editor?

Re: Custom Operation dialog box in Author mode?

Posted: Mon Jan 20, 2025 8:46 am
by Radu
Hi,
The Oxygen desktop application is based on Java swing so its possibilities to render HTML content inside are quite limited. Indeed you can use JEditorPane's, you could also try to use maybe a JavaFX component which is more advanced and can run Javascript. Some of our clients I think had also managed in the past to embed Chromium based browser components as third party components from Oxygen plugins but I have not tested this myself.
Regards,
Radu