raiserle Newbie

Joined: 10 Aug 2012 Posts: 1
|
Posted: Fri Aug 10, 2012 3:44 pm Post subject: [API - BASE] Register Database, locked after connect |
|
|
Hi,
i've tried this, to register a database in OOo.
| Code: |
DatabaseContext = createUnoService( "com.sun.star.sdb.DatabaseContext" )
DataSource = DatabaseContext.getByName( "file:///f:/tmp/testdb.odb" )
DatabaseContext.registerObject( "TEST", DataSource )
| .
When i connect the datasource via ....getByName( "TEST" ) an release the datasource ( makro-ide not closed ) - is this locked .. when i open the file via base.
The file "testdb.odb.lck" will not created after connect.
On this way: the datasourece is not locked in base after connect from makro-ide.
Register the datasource via GUI from OOo with name "TEST", connect the datasource via ... getByName( "TEST" ), and relese the connection ( makro-ide not closed ).
The file "testdb.odb.lck" will create by connecting via macro or base.
What is wron on my code?
regards
raiserle |
|