Hi,
I'm building a "Mobile" application that should produce an excel file, corresponding to a Memory List of collected data.
This spreadsheet must be available on the user's mobile phone, so there must be no action on the Server side.
I didn't find the native "Download" component for the Mobile application type.
I found "DownLoad File by Jitender Gaur" on Forge, but I'm having difficulty with the demo (Sample App).
I ask for help.
Thanks.
Arquivo de transferência de componente forjado. Isto resolverá o problema.
Olá Castro Vieira,Obrigado pelo retorno.Desculpe, sou principiante em OutSystems, não conseguir entender a expressão "Arquivo de transferência de componente forjado"...
If you use English in the answers, more people can help ....
Hello roberto,
It will be helpful if you can share the OML for the reference.
Thank you
Hi Neha,
Thanks for the feedback !
Below is the "oml" file.
Since this is a “Mobile” application, I did not find the native “Download” component and I am using the “Download File by Jitender Gaur” component from Forge.
Everything seems to be going well, but I don't know how to deal with the “FilePath” parameter in the “Result File” Assign of the “DownloadOnClick” Action, so that, the Excel spreadsheet is made available in a certain folder, for example “My Files > Documents”, or any other option that is possible, in the device itself (in this case I am testing on an Android cell phone version 8.0.0).
If the option to save Excel on the device itself is technically impossible, how can I configure this “Path” so that it is saved on the Windows notebook where the Service Center is located?
Hello Roberto,
The file path in the Demo application of the forge component is only to download the resource which is saved in the resource folder not to do anything with the downloaded file.
It is defining the path from where to download the resource of the sample purpose. I think you got the point.
Regarding the configuration of the file path, you can check this component File Extension.
Thanks
Neha Agarwal
Thanks for the feedback.
I saw that using Forge's suggested “File Extension” component, it will certainly be possible to define the path for Excel to be made available (saved) on the mobile phone that runs the application.
I installed the “File Extension” component, turned on the dependency and saw that it brings many actions, but I didn't see clear documentation on which one I should use for this purpose, and how to do it. How can I find out more about the subject?
I don't need to touch the mobile's file system. It will be completely satisfactory to use one of the existing categories, for example “Downloads” or “Documents” (on Android) to save the spreadsheet.
I'm a beginner and I'm worried that inappropriate activity with this component could damage the mobile's file system.
What is your suggestion for proceeding?
Thanks !!!
Can you please try this forge component File Plugin
It has more clear data and supported from Outsystems as well.
Neha
Thanks for getting back to me, sorry I haven't been able to resolve the situation yet.
I started using the "File Plugin" but I still don't know how to specify the "Path", as shown in the image.
I also didn't find information about the returns on the "SaveFile" action.
You can check this discussion, at it has similar issue which you are facing .This may help you to solve your problem.
https://www.outsystems.com/forums/discussion/87462/file-plugin-file-plugin-cant-download-the-file-becuase-the-file-directory-no/