Hi Ariel, > an extension may want to ship (embedded) database files (ODB) with it, > to integrate it in the Office modules (DataSourceBrowser == pressing > F4), or simply to load it to the user in some circumstances, or just use > it internally. > .. > The following demo extension > http://www.arielconstenlahaile.com.ar/ooo/temp/DatabaseSamplesPackage.oxt
Interesting scenario. > As usual, your feedback is welcome :-) About the configuration: - The fact that the DSB displays the logical names of the nodes can only be called a bug, IMO. Care to submit an issue for this. Your extension proves that the behaviour is complete nonsese, since the logical node name, as you write in your .xcu, must be unique, and thus most probably not human-readable. Actually, it seems the value of the "Name" node is nowhere used, except in the database registration dialog. You even cannot use it in the database context's getByName (which is different to what you write in your .xcu) - The way of retrieving the URL of a data source might also not work as written in your .xcu: Try renaming one of your registered data sources, and look into the user-layer's DataAccess.xcu: It seems the configuration actually deletes the nodes in the extension layer, and creates new ones in the user layer, with new logical node names. (Strange, not sure whether this is a configuration bug.) - for preventing the user from editing registered names, I would have expected a oor:finalized="true" at the respective configuration node. (The UI would probably still allow this, since it isn't prepared to respect the read-onlyness of the underlying configuration.) However, I wasn't able to get to oor:finalized attribute to work, neither in the share nor in the user nor in the extension's layer. Hmm. - Trying to connect to the sample DBs in the DSB (or after opening them from within the DSB) gives some "Invalid argument in JDBC call" error. Huh? Might be related to the naming issue from the first item, because connecting is possible when the DB is opened from your sample menu. Care to submit another issue "Cannot connect to database shipped with extension"? Other than that: cool stuff (and yes, the non-cool stuff is on OOo side :(). Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
