Forms: How to select a file?
pmulroney at logicaldevelopments.com.au
Mon Apr 25 06:38:54 UTC 2022
> On 24 Apr 2022, at 1:51 am, Das Goravani <goravanis at gmail.com> wrote:
> BUT I wish there was a File Picker dialog that I could pop up over the form (good only on desktop/laptop computers). I haven’t found that yet in the docs for remote forms. I’m glad I found out how to do drag and drop of file system files.
There is such a thing - it's the File Control object in the remote form. You can trigger an upload by putting code that looks like this in a button:
Calculate irFileData as row(ilMIMEHeaders,'tvFileData')
Calculate $cinst.$objs.FileControl.$action as kJSFileActionUpload ## this triggers the file upload
Look for the File Control object in the online docco - https://www.omnis.net/developers/resources/onlinedocs/WebDev/03jscomps.html#uploading-files <https://www.omnis.net/developers/resources/onlinedocs/WebDev/03jscomps.html#uploading-files>
You can't have everything; where would you put it?
Paul W. Mulroney We Don't Do Simple Pty Ltd
pmulroney at logicaldevelopments.com.au Trading as Logical Developments
www.logicaldevelopments.com.au ACN 161 009 374
Ph: +61 8 9458 3889 86 Coolgardie Street
BENTLEY WA 6102
More information about the omnisdev-en