I would like to change the key's default behaviour in a MULTIPLE browse
I would like that keys unselect previously selected rows and select the new row where i put foccus, and i would like to keep multiple selection only with mouse.
I thought i could code this like that :
I would like that keys unselect previously selected rows and select the new row where i put foccus, and i would like to keep multiple selection only with mouse.
I thought i could code this like that :
DEFINE QUERY q1 FOR Customer SCROLLING.
DEFINE BROWSE b1 QUERY q1 NO-LOCK
DISPLAY
Customer.CustNum Customer.Name Customer.Phone
WITH MULTIPLE 15 DOWN NO-ASSIGN SEPARATORS.
DEFINE FRAME f1WITH NO-BOX.
SKIP(1) SPACE(8) b1 SKIP(1) SPACE(8)
ON "CURSOR-DOWN" OF BROWSE b1 OR "CURSOR-UP" OF BROWSE b1
OR "PAGE-DOWN" OF BROWSE b1
OR "PAGE-UP" OF BROWSE b1END.
OR "HOME" OF BROWSE b1
OR "END" OF BROWSE b1 DO:
BROWSE b1: DESELECT-ROWS ().
BROWSE b1:SELECT-FOCUSED-ROW().
OPEN QUERY q1 FOR EACH Customer.
ENABLE ALL WITH FRAME f1.
WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW.
But method "SELECT-FOCUSED-ROW()." select the row where i was (before the key is apply) and not where i go:
Is there anyone who can suggest something ?