using multiselection with smartbrowser

psuter

New Member
In the property-sheet of a smart-browser I set the multiselection attribut.

But, how can I receive the selected RowID's?

Normally (not using smart-objects) I used the attribut 'NUM-SELECTED-ROWS' and the function 'FETCH-SELECTED-ROW' in order to receive the selected RowId's.

The attribut 'NUM-SELECTED-ROWS' is set, but the function 'FETCH-SELECTED-ROW' doesn't work. I received always the same RowIdent-Value.

Can anybody help me solving this little problem?

Pascal Suter
 

bendaluz2

Member
Try this

DEFINE VARIABLE i AS INTEGER NO-UNDO.
DEFINE VARIABLE row$id AS ROWID NO-UNDO.

DO i = 1 TO {&BROWSE-NAME}:NUM-SELECTED-ROWS:
{&BROWSE-NAME}:FETCH-SELECTED-ROW(i).
ASSIGN row$id = ROWID({&FIRST-TABLE-IN-QUERY-{&BROWSE-NAME}}).
END.

Then, do whatever you need to do with the rowid (row$id) in the loop
 
Top