47
Views
2
Comments
Solved
Expoxt CSV with dynamic columns
Question
Application Type
Reactive

Hi everyone,

I need some solutions, i want to export a csv file with a template like below

I created a structure with 10 attributes (10 cols), add one bye one "Sample" to list structure, then append them all

But, in "Sample3" list records be showed  in a row, the number of records is different when i get from other action, so it may exceed 10cols (the structure), i can create structure with 20, 30..cols, but i want make cols dynamic

I think about counting a number of records of "Sample3" and compare to 10, then pick a bigger number to create a cols of Structure, but i dont know how can i do it, can i using Json???? 

Im new in OS, so thanks very much for your help

2024-05-08 06-29-37
Prince Aadil Khan Panwar
Solution

Hi Sang Nguyen Vu,

this discussion seems same. please go through of it. 

https://www.outsystems.com/forums/discussion/79535/need-to-add-multiple-table-in-excel-export-in-single-sheet/

Hope this will help you.

Thanks

Prince

2024-05-26 06-03-29
Sang Nguyen Vu

thank you

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