Conditional Filtering before Export to Excel

0
I have a Data Grid with a format similar to Excel, where each column corresponds to entity attributes. Now, before exporting it to Excel, I want to add an additional step: display a list of all entity attributes, allowing me to select (check) the ones I want. Only the data corresponding to the selected entity attributes will be exported to Excel. How can this be achieved?
asked
1 answers
1

Hi Jeff,

To meet your requirement, you can use the Data Grid 2 widget in Mendix. It comes with a built-in column visibility toggle (the eye icon) that lets users show or hide columns as needed. When exporting to Excel, only the columns that are currently visible (selected via the toggle) will be included in the export.

image.png

 

You can use the built-in JavaScript action,  Export_To_Excel , which comes with DataWidgets to export the data.

 

Hope it helps!

 

Thanks

answered