Excel Exporter How to set filename as ProjectName instead of “Projects(1).xlsx”

0
Hi all, I’m working with the Excel Exporter in Mendix and I want to change the exported file’s name.Currently, the downloads are named automatically like Projects.xlsx, Projects(1).xlsx, Projects(2).xlsx, etc. What I would like is for the file name to match the ProjectName attribute from my domain model  Domain model:     Project has attribute ProjectName Linked to ExcelDocument Microflow:     I create an ExcelDocument Link it to Project Then call SUB_ExcelDocument_GenerateReport I already tried adding a Change Object on the ExcelDocument to set:     and then commit it before the Java action runs. But the downloaded file name is still Projects(1).xlsx. SUB_ExcelDocument_GenerateReport     Question: Does SUB_ExcelDocument_GenerateReport ignore the Name attribute? Do I need to adjust the Java action to respect the custom filename? Or is there a better Mendix way to make the download use my ProjectName? Thanks a lot for any guidance!
asked
1 answers
1

After the object "Document" has been created, do a change object action, change the name attribute, commit the change and then download "Document". Depending on the version, you might need to add the file type '.xlsx' to the end of the naming so that the file is correctly downloaded as xlsx.

answered