Hello,
I have one soluction with have the money count and i need export this datas to outside of my application(like .pdf or .xls), but i can't.
Someone can help me please?
Hi Thiago,
In order to export data from your application you can create an action with a query that grabs the data you want to export and then use Record List to Excel to export that data.
Take a look at an example here:
https://success.outsystems.com/Documentation/Development_FAQs/How_to_export_entity_data_to_Excel
Hi João Neves,
But i need this soluction in Mobile, not a web.
In web i know how i can do this.
Are trying to export the data from local storage?
Yes, no have the component "download" or "excel" just like have in web
João Neves wrote:
To export to Excel or PDF you'll need to use a Cordova plugin. I think there are already some that allow you to create Excel or PDF files, but I never tried any of them.
You may instead create a text file, like a CSV file, which Excel opens nicely with all data in their columns. I attached an example of how to make a text file out of Local Storage and allow the user to download it. Hope it helps!
This workes in half way haha i need to export excel or pdf, this soluction only made the .text download
Carlos Xavier wrote:
If you really need the excel or pdf file, then you'll need to use a cordova plugin that gets you the job done. I did a quick search and I found the following plugins:
https://github.com/jonathanbsilva/Phonegap-XLS-Plugin - Allows you to create an Excel file but it seems to be implemented only for Android
https://github.com/cesarvr/pdf-generator - Allows you to create a PDF from some HTML markup
You may refer to https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/Mobile_Plugins/Create_a_Plugin_to_Use_Mobile_Capabilities_in_Your_Application to understand how to create a module that wraps one of these plugins and use it in your application.