28
Views
3
Comments
How to set a specific column order when downloading aggregate data to Excel ?
Question

I am implementing a feature in OutSystems where aggregate data is downloaded as an Excel file. While the data exports successfully, the column names in the Excel file are not in the desired order.

For example:

The current column order is: Team Name, Sub Task Category, Member Name and  Task Category etc.

I want the column order to be: Team Name, Member Name, Task Category and Task sub Task Category etc.

How can I rearrange the column order in the exported Excel file?


Your guidance or an OML file for a similar use case would be helpful! 



2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @Pavani Vislavath ,

Create a structure which contain all attribute in your order and mapped in DownloadAsExcel.

I attached a sample OMl review It .It show first username and second one Name.

Regards ,

Rajat

FBS_Excel.oml
2025-12-03 17-22-41
Lavanya Kamalaguru

Hi @Pavani Vislavath,

1. Create a structure based on your order i.e., Team Name, Member Name, Task Category and Task sub Task Category etc. 

2. Create a local variable ( datatype as newly created structure list).

3. Append all data into the local variable.

4. Export this local variable into excel, you will get the expected output.

Thanks,

Lavanya Kamalaguru.

2022-07-12 01-10-14
Jithu Cheriath Thomas

Hi @Pavani Vislavath ,


Create a new structure with the order you want in the excel sheet, and map the aggregate fields to the new structure fields. that should work for you.


Thanks,

Jithu

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