Hallo Frank ,
Point is : my Datsourcebrowser has no model ?
I load a DatsourceBrowser in a FrameControl (learned from Ariel) in a Dialog
oFrameControl2 = createUnoService("com.sun.star.frame.FrameControl")
oDlg.addControl("Grid2" oFrameControl2)
Then "Grid2" (in my Dialog) is a "com.sun.star.frame.FrameControl"
with no model but a "Frame" who has a "Controler" who is a
DatasourceBrowser but with no Model !
so i am a bit confused :-)
Thanks
Fernand
Hello Fernand,
I try to use the "com.sun.star.frame.FrameControl" in a dialog acting as
a "subforms'.
So i have 2 Framecontrol's loaded with a dataSource browser based on a
SQL-statement
When selecting a row in the first FrameControl the data in the second
must been refreshed (passing a new SQL-statementto the second Framecontrol).
I found no way to do that because the activeCommand off the Resultset is
"readonly".
The DataSourceBrowser supports the css.form.FormController service, thus
a css.form.XFormController interface, so the getModel method will return
the css.form.component.DataForm which represents the data. This, in
turn, has a css.form.XLoadable interface, which supports a "reload" method.
So, something like
oDataSourceBrowser.getModel().reload()
should do (assuming that oDataSourceBrowser is the controller loaded
into your "Grid2" control).
Ciao
Frank
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help