Uniface User Forum

 View Only
  • 1.  Filebox versus Drag and Drop Target

    Posted 07-03-2022 07:04
    I need to be able to add multiple files into Uniface from Windows explorer.

    We have historically used filebox, but the limitation of this is it can only deal with one file at a time, which when you have 20-30 to upload, is a very tedious job.

    I have read in the Uniface documentation that a (DRAGAND) DROPTARGET can accept files dragged from WIndows Explorer but as I've never used a drag and drop widget before I have no idea how to make this work, or if indeed this is possible. The documentation on drop targets is a bit sparse and doesn't give me any clues on where to start.

    I did create a dummy field and tried to drag some explorer files over, but it just gives me a 'no entry' type symbol.

    What do I need to do and what trigger does it fire on the field, as I obviously then need to loop through the results to process the individual files in.

    Many thanks!

    ------------------------------
    Toni Davenport
    Uniface Community Edition Shared Account
    US
    ------------------------------


  • 2.  RE: Filebox versus Drag and Drop Target
    Best Answer

    ROCKETEER
    Posted 07-04-2022 03:41
    Found the following in the Uniface Community Samples library:
    It seems that the link to the mentioned article in the sample is outdated, but you can find it here: Drop it like it's hot.

    I hope this helps.

    ------------------------------
    Daniel Iseli
    Principal Technical Support Engineer
    Uniface Services
    Rocket Software, Switzerland
    ------------------------------



  • 3.  RE: Filebox versus Drag and Drop Target

    Posted 07-11-2022 06:06
    Thanks Daniel, that's just the job - works really well!

    ------------------------------
    Toni Davenport
    Uniface Community Edition Shared Account
    US
    ------------------------------