Doing postbacks in an Umbraco 5 section or dashboard
Hi, I'm putting together an Umbraco site. In the backend I need to have a way for a user to run a report for which they will supply a start and end date before running. The data will come from outside of Umbraco. I can't seem to find any information on the best way to do this in Umbraco 5. I have set up a dashboard with two fields and a button on it to allow the administrator to choose the date range (following the advice here http://our.umbraco.org/forum/core/umbraco-5-general-discussion/27868-How-to-add-a-dashboard-in-Umbraco-5), but i can't find any information on how to get at that data and display the results back to them. The results will be dispayed in the admin site, but should also be downloadable to CSV. So my questions are:
1. Is a dashboard the best way to go about this?
2. If so, how do you set up your view and controller to post the data back to controller code?
I have tried using something similar to what you would use in a surface controller like @using (Html.BeginUmbracoForm("HandleGenerateReport", "Reports")), but simply get a 404. Am I on the right track?
Doing postbacks in an Umbraco 5 section or dashboard
Hi, I'm putting together an Umbraco site. In the backend I need to have a way for a user to run a report for which they will supply a start and end date before running. The data will come from outside of Umbraco. I can't seem to find any information on the best way to do this in Umbraco 5. I have set up a dashboard with two fields and a button on it to allow the administrator to choose the date range (following the advice here http://our.umbraco.org/forum/core/umbraco-5-general-discussion/27868-How-to-add-a-dashboard-in-Umbraco-5), but i can't find any information on how to get at that data and display the results back to them. The results will be dispayed in the admin site, but should also be downloadable to CSV. So my questions are:
1. Is a dashboard the best way to go about this?
2. If so, how do you set up your view and controller to post the data back to controller code?
I have tried using something similar to what you would use in a surface controller like @using (Html.BeginUmbracoForm("HandleGenerateReport", "Reports")), but simply get a 404. Am I on the right track?
Thanks,
Pete.
Maybe this topic can help: http://our.umbraco.org/forum/core/umbraco-5-general-discussion/29130-Custom-page-in-Umbraco-5-backoffice
Jeroen
Thanks, that helped!
is working on a reply...