locked
How do I include a report within a Dynamic Data Project RRS feed

  • Question

  • User-1304181798 posted

    I am new to Dynamic Data projects but so far, I am impressed.  I have some basic questions / issues that I could use some help with.

    1. How do I add a custom page?  This is covered in several posts but when I copy a template into my newly created folder under CustomPages an error is thrown.  The errors seem to revolve around som ambiguity since the new copy is identical to the original template.  What must I change to resolve this ambiguity?  For exampls. one error states simply "...Table is already defined..."

    2. How do I include a newly created report (I used the report wizzard in VS 2010) in my project and where can it  be accessed from the GUI by the user?

    Thursday, May 26, 2011 10:03 AM

Answers

  • User-330204900 posted

    Hi mreynol5, I have tried several ways usually I create a custom page and then add a route like this:

    routes.Add("Report", new DynamicDataRoute("{table}/{action}")
    {
        // add constraints
        Constraints = new RouteValueDictionary(new
        {
            // constrain to following actions
            action = "Report",
            // constrain to the following tables
            table = "TableNameForReport"
        }),
        Model = DefaultModel
    });

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 26, 2011 4:48 PM