[Laszlo-user] Problem building a combobox from a dataset
Ismael Ferrer Olmedo
iferrer at germinus.com
Fri Apr 15 05:45:14 PDT 2005
Hello,
I'm trying to build a group of combos from a dataset but it doesn't works to
me. I've tried the way explained in documentation and it works but that way
you can only have one combo. I want to render several comboboxes from a
dataset. Here is an example, with the implementation of documentation and
with my implementation. With the second implementation the combobox appears
empty.
<canvas width="500" height="130">
<dataset name="sets">
<set>
<item value="item1">item one</item>
<item value="item2">item two</item>
<item value="item3">item three</item>
<item value="item4">item four</item>
</set>
</dataset>
<view>
<simplelayout axis="x"/>
<!-- The way it works -->
<combobox width="130"
shownitems="3"
defaulttext="choose one..." >
<textlistitem datapath="sets:/set/item"
text="$path{'text()'}"
value="$path{'@value'}"/>
</combobox>
<!-- The way I need -->
<view datapath="sets:/set">
<combobox width="130"
shownitems="3"
defaulttext="choose one..." >
<textlistitem datapath="item"
text="$path{'text()'}"
value="$path{'@value'}"/>
</combobox>
</view>
</view>
</canvas>
Someone knows what's wrong with this?
Thanks in advance.
--
Ismael Ferrer Olmedo
Germinus XXI
http://www.germinus.com
Tlf. +34 912961234
Fax. +34 912961230
More information about the Laszlo-user
mailing list