views:

223

answers:

0

I'm trying to create a simple system to keep track of how long I spend on certain tasks (creating a new control, modifying a report, etc) using ASP.NET Dynamic Data. I've got a hierarchical structure to the database where a Project has many Assignments, and an Assignment has many Tasks.

When I go to create a new Task through the Dynamic Data generated scaffolds, I have to choose between every single Assignment on every single Project. Is there a way to pre-select from the available choices on the Insert template page based on the filtering done in the List page you came from? I.e. - If I am looking at a list of Tasks for Assignment A, and then click on "Insert New Item", I would like Assignment A to be selected automatically rather than having to look through every single Assignment in the database for the one I want.

Basically, I just want it to work like a file system, where I can easily insert a new item at my current location in the "folder" hierarchy.

Is there a good way to do this (or anything that would better support a hierarchical data structure) in Dynamic Data, or should I just break down and hand-code this? It wouldn't be that hard, I just figured Dynamic Data could make it easier.