To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=57654 Issue #:|57654 Summary:|com.sun.star.sdb.Datasource service does not support |com.sun.star.frame.XStorable interface as stated in |the developer guide (Java-UNO binding) Component:|api Version:|OOo 2.0 Platform:|PC URL:|http://www.oooforum.org/forum/viewtopic.phtml?p=10522 |1 OS/Version:|Linux Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|documentation Assigned to:|jsc Reported by:|ifrs
------- Additional comments from [EMAIL PROTECTED] Thu Nov 10 01:30:32 -0800 2005 ------- Java Example from the 2.0 RC2 SDK Section 12.2.2 "Adding and editing DataSources" does not work. Indeed the Object returned from com.sun.star.sdbc.DatabaseContext.createInstance() does not support com.sun.star.frame.XStorable interface This interface is necessary as according to the dev guide [quote]"Before data sources can be registered at the database context, they have to be stored with the com.sun.star.frame.XStorable interface. The method storeAsURL should be used for that purpose."[/quote] Executing the code below returns NULL : XStorable store = ( XStorable)UnoRuntime.queryInterface(XStorable.class, xDs); Also querying the datasource object's property "DatabaseDocument" throws an UnsupportedPropertyException : // "reference" is returned by createInstance() on the DatabaseContext XPropertySet properties = UnoRuntime.queryInterface(XPropertySet.class, object) Object document = properties.getProperty("DatabaseDocument"); The above code throws an UnsupportedPropertyException. The "DatabaseDocument" property should give access to the com.sun.star.frame.XStorable interface according to some OOBasic examples --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]