Hi,
I've searched the forums and looked at the samples, but couldn't find a complete example on how to work with hierarchical XML.
We have our services layer which returns a complete unit-of-work document represented as XML. That XML has a root node with many sub nodes which represent direct attributes, but also has collections which need to be fetched/saved using one single HTTP/XML query.
A typical XML structure served by our services layer would look as follows:
<root>
<attrib1>value1</attrib1>
<attrib2>value2</attrib2>
<x_list>
<x>
<attrib3>value3</attrib3>
<attrib4>value4</attrib4>
</x>
<x>
<attrib3>value5</attrib3>
<attrib4>value6</attrib4>
</x>
</x_list>
<y_list>
<y>
...
</y>
</y_list>
</root>
Using the same dataset, I want to bind some DynamicForm elements to attrib1 and attrib2 but I also want to have a ListGrid bind to x_list and another one bind to y_list. I don't want to have multiple server round trips as I want everything here to be handled within the same transaction or unit of work when data is saved.
I've looked at nested Datasets, XPath, etc but some pieces are missing and couldn't find an actual complete example that illustrates how the SmartClient framework supports this hierarchical XML, if it does support it?
Can someone please shed some light? Thanking you in advance for your help.
Kind regards,
I've searched the forums and looked at the samples, but couldn't find a complete example on how to work with hierarchical XML.
We have our services layer which returns a complete unit-of-work document represented as XML. That XML has a root node with many sub nodes which represent direct attributes, but also has collections which need to be fetched/saved using one single HTTP/XML query.
A typical XML structure served by our services layer would look as follows:
<root>
<attrib1>value1</attrib1>
<attrib2>value2</attrib2>
<x_list>
<x>
<attrib3>value3</attrib3>
<attrib4>value4</attrib4>
</x>
<x>
<attrib3>value5</attrib3>
<attrib4>value6</attrib4>
</x>
</x_list>
<y_list>
<y>
...
</y>
</y_list>
</root>
Using the same dataset, I want to bind some DynamicForm elements to attrib1 and attrib2 but I also want to have a ListGrid bind to x_list and another one bind to y_list. I don't want to have multiple server round trips as I want everything here to be handled within the same transaction or unit of work when data is saved.
I've looked at nested Datasets, XPath, etc but some pieces are missing and couldn't find an actual complete example that illustrates how the SmartClient framework supports this hierarchical XML, if it does support it?
Can someone please shed some light? Thanking you in advance for your help.
Kind regards,
Comment