Last post Sep 19, 2008 02:38 AM by sjnaughton
Sep 17, 2008 04:29 PM|MattAdamson|LINK
I have an entity say Employee which has links to contacts, addresses e.t.c. The default code generated by dynamic data generates a page for an employee which has buttons to show all contacts and a separate button to show all addresses. I'd like to show
all the contacts within the other employee details like name , surname rather than having to navigate to a separate page.
How can I best do this?
In relation to this do I simply use the basic generated pages and then modify them, but what if then make changes to the data model, do my original changes get overwritten?
Sep 18, 2008 02:01 AM|sjnaughton|LINK
Hi Matt have a look at my series on FieldTemplates here:
You want to the what I've now called the ChildrenGrid (old name
An Advanced FieldTemplate with a GridView) FiledTemplate I think.
hope this helps [:D]
Sep 18, 2008 02:20 PM|MattAdamson|LINK
Thanks Steve I'll review all of the links in detail shortly.
One thing I'm puzzled on though is from
why would you have to change a page template into a field template, aren't you just embedding a page template in another page template?
Sep 18, 2008 02:54 PM|sjnaughton|LINK
No problems it just gives you sort of a mater detail type page real easy, if you add it via UIHint on a Children column then you get the all the child records for that master record
i.e. Northwind Orders->Order_Details
It is usefull, also I added a ForeignKey ParentDetail FT the allows you to look bac from the detail at the MasterParent record.
Hope this helps [:D]
Sep 19, 2008 02:38 AM|sjnaughton|LINK
The other way to go is custom pages, try this series on my blog: