Consultor Eletrônico



Kbase P115814: 4GL: How to get selected values from from the currently selected browse of a Multiple-Selection brow
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/29/2009
Status: Verified

GOAL:

4GL: How to get selected values from from the currently selected browse of a Multiple-Selection browse?

GOAL:

How to access data of the currently selected rows of a Multiple-Selection browse?

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

FIX:

The following code, which may be placed in a button CHOOSE trigger, loops through the currently selected rows of a Multiple-Selection browse and displays the customer name from each:
DO:
DEFINE VARIABLE iCount AS INTEGER NO-UNDO.
DO iCount = 1 TO BROWSE-2:NUM-SELECTED-ROWS:
BROWSE-2:FETCH-SELECTED-ROW(iCount).
GET CURRENT BROWSE-2 NO-LOCK.
MESSAGE Customer.NAME
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
END.