Welcome Guest, Not a member yet? Register   Sign In
SPRY PHP : Data Set fetch problem
#1

[eluser]kamal1976[/eluser]
Dear Friends,


I am building menu from the xml file using Spry Widget. My XML structure is
<main id="002">
&lt;title&gt;Payment Reports&lt;/title&gt;
&lt;link&gt;#&lt;/link&gt;
<submenu id="21">
&lt;linkinner&gt;/lckbx/main/payment_default&lt;/linkinner&gt;
&lt;titleinner&gt;Check Payment Report&lt;/titleinner&gt;
</submenu>
<submenu id="22">
&lt;linkinner&gt;/lckbx/main/postedpayment_default&lt;/linkinner&gt;
&lt;titleinner&gt;Posted Payment Report&lt;/titleinner&gt;
</submenu>
</main>

My nested xml calls are

var dsItems = new Spry.Data.XMLDataSet("/menu/lockbox_menu.xml", "/buildmenu/main");
// Setup a couple of nested data sets:
var subItems = new Spry.Data.NestedXMLDataSet(dsItems, "submenu/titleinner", "submenu/linkinner");

My problem is I am not be able to access the value of "submenu/linkinner" from the xml file.
<li spry:repeat="subItems" title="{subItems::titleinner}"><a href="{subItems::linkinner}">{subItems::titleinner}</a></li>

I can not either create and use the third data set as nested data regions are not allowed if I create a third data set then they over laps.

I can only fetch the value from the first element of the nested structure. Please help me out how to fetch value from the second sub value from nested tag.

Thank you,
Kamal.
#2

[eluser]Randy Casburn[/eluser]
This sounds like a SPRY related problem and not a CI related problem. You're more likely to find an answer on the Adobe forums.

Also, can you please edit your post and put your code inside [ code ] [ /code ] tags?

Thanks,

Randy




Theme © iAndrew 2016 - Forum software by © MyBB