Kbase P34614: How to choose/select multiple files at once with SYSTEM-DIAL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/31/2003 |
|
Status: Unverified
GOAL:
How to choose/select multiple files at once with SYSTEM-DIALOG GET-FILE
FIX:
The 4GL SYSTEM-DIALOG GET-FILE Statement allows the selection of only one file at a time, therefore you might choose one of the 2 options:
With Drag and Drop (since Version 9):
1) Rely on drag and drop from the MS Explorer.
Set DROP-TARGET attribute/property of a widget of a visual object (widget, frame, window) to YES.
2) In DROP-FILE-NOTIFY Trigger, use the GET-DROPPED-FILE() method and NUM-DROPPED-FILES attribute to get the name of dropped files/directory
With your own UI populated by INPUT FROM OS-DIR loop:
1) See Progress Solution P21640 How to get list of files of a specified directory by 4GL
2) Use technique of P21640 to populate a temp-table
3) Manage the temp-table in a multiple selection browse, or with an additional logical selection field displayed with a format of "X/" ('X' if Yes, space if NO) and toggled on a mouse event or DEFAULT-ACTION event