
Hi, I'm trying to write a plugin to select data from a popup screen. This works - more or less - for static data. But when I try (with Spring and Hibernate) to read from a database the popup screen doesn't show up. The first thing I tried was to make a connection in Oxygen and my data is shown there. How can I insert data from my database into my (Dita) document? Kind regards Roderik Dernison INL ________________________________ ---------------------------------------------------------- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien het bericht niet voor u is bestemd, verzoeken wij u dit aan ons te melden en het bericht te verwijderen. This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us and delete the message. ----------------------------------------------------------

Hello, What is the name and version of the database? How did you connect to the database in Oxygen when you could see the data from the database correctly: 1. through a database connection based on a JDBC database driver and defined in Preferences -> Data Sources, (http://www.oxygenxml.com/doc/ug-oxygen/topics/preferences-data-sources.html) or 2. using a custom protocol plugin developed in Java as described in the User Manual? (http://www.oxygenxml.com/doc/ug-oxygen/tasks/howto-custom-protocol-plugin.ht...) If you already have a working connection defined in Preferences a simple way of adding the data to the DITA document is to browse the database contents in the Data Source Explorer view, open the XML file or the SQL table containing the data in Oxygen and copy and paste the data from there to the DITA document. If you connect to the database with a custom protocol plugin please give us more details about the error that you get in the Java code of your plugin (which acts as a database client) when you try to establish the connection with the database server. Regards, Sorin Roderik Dernison wrote:
Hi,
I’m trying to write a plugin to select data from a popup screen. This works – more or less - for static data. But when I try (with Spring and Hibernate) to read from a database the popup screen doesn’t show up.
The first thing I tried was to make a connection in Oxygen and my data is shown there.
How can I insert data from my database into my (Dita) document?
Kind regards
Roderik Dernison
INL

Hi Roderik, You should try to run Oxygen from the command line (using "oxygen.bat" on Windows for example) as you might receive more information in the console. For example you can use System.err's or System.out's in your code for some primitive debugging. Or you can use the Apache Log4j Logging capabilities (which are also used in our own classes) for printing debug information in the Oxygen console. There are probably two possibilities: 1) The code throws an unguarded exception at some point so maybe you should also try to surround your code with:
try{ //YOUR CODE HERE }catch(Throwable t){ t.printStackTrace(); }
2) The code blocks or times out in an Input/Output operation over the network. As Oxygen is a Java application you can also debug it:
http://www.oxygenxml.com/forum/post18565.html?hilit=debug%20oxygen#p18565
Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 8/12/2011 11:49 AM, Roderik Dernison wrote:
Hi,
I’m trying to write a plugin to select data from a popup screen. This works – more or less - for static data. But when I try (with Spring and Hibernate) to read from a database the popup screen doesn’t show up.
The first thing I tried was to make a connection in Oxygen and my data is shown there.
How can I insert data from my database into my (Dita) document?
Kind regards
Roderik Dernison
INL
------------------------------------------------------------------------
---------------------------------------------------------- Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien het bericht niet voor u is bestemd, verzoeken wij u dit aan ons te melden en het bericht te verwijderen.
This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us and delete the message. ----------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (3)
-
Radu Coravu
-
Roderik Dernison
-
Sorin Ristache