Hello Fernand,

> Need some information in basic code  to get acces to multi selected lines 
> in the DataSourceBrowser.

out of my head, completely untested, and written in some pidgin basic:

oDataSourceBrowser              ' the component in the small
                                ' "data source browser" frame
  .getControls()                ' all controls in the responsibility
                                ' of this XFormController
    (0)                         ' the first control (which is a
                                ' css.sdb.control.GridControl)
      .getSelection             ' the current selection in this control


The selection should contain an array of integer values, denoting
absolute positions within the com.sun.star.sdb.DataForm. To use those
positions, do

oDataSourecBrowser              ' as above
  .getModel()                   ' the form which is currently loaded
                                ' into the DSB
    .createResultSet()          ' a "clone" of the form, which can be
                                ' operated without affecting the form
                                ' itself
      .absolute( position )     ' move the result set to the given
                                ' position, which is one of the integer
                                ' values from the selection

Something like this :)

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer,  OpenOffice.org Database Access -
- [EMAIL PROTECTED]                  http://dba.openoffice.org -
-                                                                     -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to