376
Views
7
Comments
Export Data for mobile soluctions
Question

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?

2016-11-20 11-27-52
João Neves

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

2022-03-01 15-42-44
Thiago Mari
Champion

Hi João Neves,

But i need this soluction in Mobile, not a web.


In web i know how i can do this.

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



2016-11-20 11-27-52
João Neves

Are trying to export the data from local storage?

2022-03-01 15-42-44
Thiago Mari
Champion

Yes, no have the component "download" or "excel" just like have in web

João Neves wrote:

Are trying to export the data from local storage?



2016-05-04 16-40-03
Carlos Xavier
Staff

Hi Thiago,

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!

ClientDownloadExample.oml
2022-03-01 15-42-44
Thiago Mari
Champion

This workes in half way haha i need to export excel or pdf, this soluction only made the .text download

Carlos Xavier wrote:

Hi Thiago,

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!



2016-05-04 16-40-03
Carlos Xavier
Staff

Hi Thiago,

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.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.