Re: [api-dev] How to pass a connection to a Subform

2008-12-29 Thread Fernand Vanrie
Andrew, Thanks for your reply, indeed I have to check all this load, unload and reload stuff, I am on vavacation now and have no acces to the databases. I do this checks after newyear and come back with the results. Have a Happy newyear for you and your Family Fernand Andrew Douglas Pitonya

Re: [api-dev] How to pass a connection to a Subform

2008-12-27 Thread Andrew Douglas Pitonyak
I have been trying to follow what you are doing and I am not sure that I really understand. Usually, I have a base document that contains forms. The base document references a datasource (database) of some sort. I then have my forms reference that same database. For example: sub subDisplayFo

Re: [api-dev] How to pass a connection to a Subform

2008-12-26 Thread Fernand Vanrie
OK i learned a bit more : lets starts with geting a connection (here I make a connection to a odbc driver whos gives me acces to a MS SQL database) sURL = "sdbc:odbc:debiteuren" oManager = CreateUnoService("com.sun.star.sdbc.DriverManager") oCon = oManager.getConnection(sURL) I have on

[api-dev] How to pass a connection to a Subform

2008-12-23 Thread Fernand Vanrie
Here we arae again :-) I can pass a new connection to a Form present in a base Doc using "loadComponentFromURL" where the nwe connection is passed as a argrument . but for the the SubForms present in this loaded Form i find no longer a "formcontainer who supports "loadComponentFromUR" and a