Deselect a row in a browse

sivaneshl

New Member
How to deselect a row in a multiple selection browse based on the row number in the browse.
DESELECT-SELECTED-ROW(n) deselects the nth selected row.

Ex:
In my browse, i am selecting the 2nd, 3rd and 1st row in order. When I try DESELECT-SELECTED-ROW(2), it deselects my 3rd row and not my 2nd row.
I want to deselect my 2nd row in the browse, what ever the order, in which I have made the selection.

Please help.
 
ON " ", RETURN OF {&BROWSE-NAME} IN FRAME {&FRAME-NAME}
DO:
if {&BROWSE-NAME}:IS-ROW-SELECTED({&BROWSE-NAME}:FOCUSED-ROW) then
do:
{&BROWSE-NAME}:DESELECT-FOCUSED-ROW().
end.
else do:
{&BROWSE-NAME}:SELECT-FOCUSED-ROW().
end.
.....
end.
 
My FOCUS will be on only one row at a time.
I dont want to change the focus.

It is like, upon deselecting a row in a browse, i want to deselect some other dependent rows in the browse, if they are seletcted.
 
Back
Top