Here is some code that will work. I changed your dataset a little bit
so it would have one root node.
<canvas>
<dataset name="tablabels">
<items>
<item>one</item>
<item>two</item>
<item>three</item>
</items>
</dataset>
<tabslider width="100" height="100" datapath="tablabels:/items">
<tabelement datapath="item/text()" />
</tabslider>
</canvas>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of William Krick
Sent: Friday, May 05, 2006 8:24 AM
To: Laszlo-User
Subject: [Laszlo-user] help with datapaths
I'm stuck and I'm hoping someone can help.
Given the code below, what do I put in place of ??? to display the
string from the dataset as the label on the slider?
<canvas>
<dataset name="tablabels">
<item>one</item>
<item>two</item>
<item>three</item>
</dataset>
<tabslider datapath="tablabels:/">
<tabelement text="???" selected="true"/>
<tabelement text="???" />
<tabelement text="???" />
</tabslider>
</canvas>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user