I've discovered the relevant code in C#, but when implementing in JS
the Relations[] array doesn't appear to be supported.
<server side>
DataRelation EventDates = new DataRelation("EventDates",
oDS.Tables["Event"].Columns["EventID"],
oDS.Tables["Date"].Columns["EventID"]);
oDS.Relations.Add(EventDates);
return oDS;
<client side>
for(i=0;i<res.value.Tables[0].Rows.length;i++)
{
alert(res.value.Tables[0].Relations.length);
var EventDates =
res.value.Tables[0].Rows[i].GetChildRows(res.value.Relations[0]);
alert(EventDates.length);
}
Of course, this throws an error saying "value.Tables.0.Relations.length
is null or not an object"
Are relations between DataTables supported in the JS DataSet
implementation?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---