I have a table with nodes (NODE) and that can be part of a graph via use of a RELATIONSHIP table that has columns: PARENT_ID, CHILD_ID, RELATIONSHIP_TYPE. So it's like a 1-Many-1 self-referential concept.
In Dynamic Data the display of this isn't fantastic. Are there any smarts in Dynamic Data that could help with alternatives for the display? Or is it really a case of creating one's own custom page at this stage?
As an idea on the NODE edit page it could be an option of adding related nodes something like this:
- Add another related Node: <other nodes dropdown/search> <relationship type> <parent/child>
In Dynamic Data the display of this isn't fantastic. Are there any smarts in Dynamic Data that could help with alternatives for the display? Or is it really a case of creating one's own custom page at this stage?
You should have a ManyToMany FieldTEmplate then is your project you will need to add a UIHint in your metedata to make it work.
[UIHint("ManyToMany")]
CustomerDemographics
and that does not do exactly what you want you could customise it.
Hope that helps.
Dynamic DataMany to Many (M:M)
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
Marked as answer by callagga on May 25, 2010 02:55 AM
callagga
Member
12 Points
41 Posts
One-to-Many-to-One - Any smarts in DD re how to display/edit this?
May 22, 2010 11:21 AM|LINK
Hi,
I have a table with nodes (NODE) and that can be part of a graph via use of a RELATIONSHIP table that has columns: PARENT_ID, CHILD_ID, RELATIONSHIP_TYPE. So it's like a 1-Many-1 self-referential concept.
In Dynamic Data the display of this isn't fantastic. Are there any smarts in Dynamic Data that could help with alternatives for the display? Or is it really a case of creating one's own custom page at this stage?
As an idea on the NODE edit page it could be an option of adding related nodes something like this:
- Add another related Node: <other nodes dropdown/search> <relationship type> <parent/child>
thanks
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: One-to-Many-to-One - Any smarts in DD re how to display/edit this?
May 22, 2010 12:41 PM|LINK
Hi Callagga, are you using VS2008 or VS2010 and are you using Linq to SQL or Entity Framework?
Dynamic Data Many to Many (M:M)
Always seeking an elegant solution.
callagga
Member
12 Points
41 Posts
Re: One-to-Many-to-One - Any smarts in DD re how to display/edit this?
May 22, 2010 01:13 PM|LINK
VS2010 and Entity Framework at the moment
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: One-to-Many-to-One - Any smarts in DD re how to display/edit this?
May 22, 2010 01:22 PM|LINK
You should have a ManyToMany FieldTEmplate then is your project you will need to add a UIHint in your metedata to make it work.
[UIHint("ManyToMany")]
CustomerDemographics
and that does not do exactly what you want you could customise it.
Hope that helps.
Dynamic Data Many to Many (M:M)
Always seeking an elegant solution.