eHaggis
06-08-2006, 06:10 PM
I'm new at this so please bear with me.
I'm trying to create a little navigation widget but can't seem to get the list component to bind to an XML data source. I have a Tabslider with some general headings but then I want to have a database generated list of topics under each one. The idea is to put in a list within each of the areas within the Tabslider and bind them to different datasets.
Here's the XML source that is returned from my web page:
<NewDataSet>
<Table>
<GenreID>0</GenreID>
<Name>Blues</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>8</GenreID>
<Name>Jazz</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>12</GenreID>
<Name>Other</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>13</GenreID>
<Name>Pop</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>17</GenreID>
<Name>Rock</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
</NewDataSet>
Here's my lzx file:
<canvas bgcolor="#EAEAEA" width="640" height="700">
<dataset name="dset2"
autorequest="true"
type="http"
src="http://localhost/TestNTAXML"
querystring="usp=usp_SelectUsedGenres"/>
<simplelayout axis="y" inset="20"/>
<view layout="axis:y;spacing:4">
<list width="130">
<listitem datapath="dset2:/NewDataSet/Tables"
text="Name/text()"
value="Name/text()"/>
</list>
</view>
</canvas>
Can anyone tell me what I'm doing wrong? Any help will be greatly appreciated!!
I'm trying to create a little navigation widget but can't seem to get the list component to bind to an XML data source. I have a Tabslider with some general headings but then I want to have a database generated list of topics under each one. The idea is to put in a list within each of the areas within the Tabslider and bind them to different datasets.
Here's the XML source that is returned from my web page:
<NewDataSet>
<Table>
<GenreID>0</GenreID>
<Name>Blues</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>8</GenreID>
<Name>Jazz</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>12</GenreID>
<Name>Other</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>13</GenreID>
<Name>Pop</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
<Table>
<GenreID>17</GenreID>
<Name>Rock</Name>
<Playcount>0</Playcount>
<Rating>0</Rating>
</Table>
</NewDataSet>
Here's my lzx file:
<canvas bgcolor="#EAEAEA" width="640" height="700">
<dataset name="dset2"
autorequest="true"
type="http"
src="http://localhost/TestNTAXML"
querystring="usp=usp_SelectUsedGenres"/>
<simplelayout axis="y" inset="20"/>
<view layout="axis:y;spacing:4">
<list width="130">
<listitem datapath="dset2:/NewDataSet/Tables"
text="Name/text()"
value="Name/text()"/>
</list>
</view>
</canvas>
Can anyone tell me what I'm doing wrong? Any help will be greatly appreciated!!