Page 1 of 1

Downloading MVC List output from application

Posted: June 24th, 2022, 4:13 pm
by smackie
I am trying to use a download data controller in MVC; however I have not been successful. I created the controller and have tried to set the fields using both static values and dynamic loop but nothing results in the attached screen being downloaded as a csv file.
image.png
I would really appreciate some direction on how the controller should be setup to download data.

Re: Downloading MVC List output from application

Posted: June 27th, 2022, 3:38 pm
by JustinVanRegenmorter
Hello Sheryl,

In the basic list setup helper after the list is created you will see that the SubMethod that holds the Inquire service will also hold a service called DownloadDataFile and setup the node inside it. The Loop node is just the output path to the Result node of the Inquire service.
Service Setup.PNG
Here is how the SubMethod is setup:
SubMethod.PNG
SubMethod.PNG (76.06 KiB) Viewed 403 times
SubMethod.PNG
SubMethod.PNG (76.06 KiB) Viewed 403 times

Re: Downloading MVC List output from application

Posted: June 27th, 2022, 3:43 pm
by JustinVanRegenmorter
There is also an issue with the DownloadDataFile service which I made task 10571 to fix it.

Re: Downloading MVC List output from application

Posted: March 6th, 2023, 3:07 pm
by JustinVanRegenmorter
Revisited this issue and confirmed it is no longer happening.