Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Bailey 6 posts 27 karma points
    Mar 12, 2012 @ 15:26
    Peter Bailey
    0

    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.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 12, 2012 @ 17:03
  • Peter Bailey 6 posts 27 karma points
    Mar 12, 2012 @ 18:13
    Peter Bailey
    0

    Thanks, that helped!

Please Sign in or register to post replies

Write your reply to:

Draft