|
Summary
How to Bind Data Fields to a Hierarchical Data Island
I've seen this question been made several times, so one more just trigered this snippet.
I don't think this is very advanced snippet, but then it will I hope avoid me to have to write it down a couple of times more :-)
When you have a nested xml, and you want to bind it to data fields, you have to build your HTML in a nested way to.
Imagine that you have a xml that look like this...
<root> <gran-parent> <nameGP>GP</nameGP> <parent> <nameP>P</nameP> <child> <nameC>C</nameC> </child> </parent> </gran-parent> </root>
So for you to bind this xml in data-bound table you will have to recreate the nesting of the xml file in the data-bound table.
somthing like this:
<table datasrc=#dsoData > <tr> <td> <input datafld=nameGP/> </td> <td> <table datasrc=#dsoData datafld=parent> <tr> <td><input datafld=nameP/></td> <td> <table datasrc=#dsoData datafld=child> <tr> <td><input datafld=nameC/></td> </tr> </table> </td> </tr> </table> </td> </table>
Hope this make this clear :-)
Pedro Gil
|