Subject Re: [IBO] bookmarks
Author Florian Hector
Rick,

> I'm working with a TIB_Grid connected to a view in a TIB_Query
> that
> has one updateable field.
>
> The user selects multiple fields then right clicks in the grid to
> bring up a popup and marks the bookmarked rows "Complete".
>
> When I track the RowsAffected and RowsSelected properties, I get
> incorrect numbers back like 349 for each value. This is when only
> ONE row is actually updated.
>

IIRC you have to go through the whole Dataset and check if an item is
selected. If so, do whatever you want to do with it.

var
i: Integer;
....
i := 1;
DMOrders1.QPendingItems.BeginBusy( False );
DMOrders1.QPendingItems.First;
while not DMOrders1.QPendingItems.Eof do
begin
if DMOrders1.QPendingItems.Selected[i] = True then
begin
whatever....
end;
end;
inc(i);
DMOrders1.QPendingItems.next;


To unselect all selected items you use Query.SelectAll(false);

Florian