I am populating a table with data, and needing to allow a user to click a button and export that data to excel through the download action. I am familiar with this process on Traditional Web apps but not in the new Reactive apps.

Solution

Hello Eric,

Create a server action and use the RecordListToExcel, then define an output parameter as binary.

Then just drag that Action to the client action, use the download widget and use the binary output parameter defined on the server action.


Hope it helps,

Cheers!

Solution

Tiago Gomes wrote:

Hello Eric,

Create a server action and use the RecordListToExcel, then define an output parameter as binary.

Then just drag that Action to the client action, use the download widget and use the binary output parameter defined on the server action.


Hope it helps,

Cheers!

Don't you still need an input parameter for the server action to send to the RecordListtoExcel though if your aggregate lives on the screen?


Also have the same question!

What if we need to pass our RecordListToExcel to the Server Action, when it's a composite aggregate/specific list (i.e., not in the database)???

Tiago Gomes wrote:

Hello Eric,

Create a server action and use the RecordListToExcel, then define an output parameter as binary.

Then just drag that Action to the client action, use the download widget and use the binary output parameter defined on the server action.


Hope it helps,

Cheers!

 

Hi Tiago,


Would you able to share the oml file for above mentioned example? I am having difficulty in exporting the aggregate.


Regards

Arokianathan

Thank you. Everything works, except I download an empty file. The Aggregate returns lots of data (I tested), but the downloaded file always cames empty. What am I doing wrong?