Uniface User Forum

 View Only
  • 1.  Filebox multi file selection

    Posted 03-31-2022 09:29

    Hi Unifacers,

    I've got a request to let filebox instruction select multiple files in a single usage; AFAIK this functionality is NOT available.

    Is there any tips / trick or suggestion on the argument?

    Regards,
    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------



  • 2.  RE: Filebox multi file selection

    PARTNER
    Posted 04-01-2022 04:17
    Teeny tiny HTML widget with  a  'file'  input type button, with the multiple attribute set. Use javascript to capture the data and pass back out to the uniface component? 

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file

    Not tried it practically yet. 
    Iain

    ------------------------------
    Iain Sharp
    Head of Technical Services
    Pci Systems Ltd
    Sheffield GB
    ------------------------------



  • 3.  RE: Filebox multi file selection

    Posted 04-01-2022 07:16
    You can use the tree widget with the list of files using the command $dirlist/FILE.

    ------------------------------
    Juliano Garcia
    Suport Analyst
    Coamo -Coop. Agropecuaria Mouraoense
    Campo Mourão BR
    ------------------------------



  • 4.  RE: Filebox multi file selection

    Posted 04-01-2022 07:19
    If the file list is not too big, you can use the $dirlist/FILE command to read the files and the listbox widget and do to select multiple items/files.

    ------------------------------
    Juliano Garcia
    Suport Analyst
    Coamo -Coop. Agropecuaria Mouraoense
    Campo Mourão BR
    ------------------------------



  • 5.  RE: Filebox multi file selection

    ROCKETEER
    Posted 04-01-2022 07:40
    Multi-select is currently not supported by the Uniface filebox instruction.
    It is however possible to embed the Windows Common Dialog Control (comdlg32.ocx)
    (C:\Windows\SysWOW64\comdlg32.OCX)
    in the Uniface OCX container and use its OpenFile dialog.
    See also
    https://answers.microsoft.com/en-us/windows/forum/games_windows_10/comdlg32ocx-in-windows-10/804ca1eb-1ee8-4b8c-afff-9bd09356ef7f
    We used
    C:\WINDOWS\system32>regsvr32 /u C:\Windows\SysWOW64\comdlg32.OCX

    Peter Beugel
    Principal Technical Support Engineer
    Rocket Software B.V.

    ------------------------------
    Peter Beugel
    Rocket Internal - All Brands
    Amsterdam NL
    ------------------------------