[Laszlo-user] convert combobox into datacombobox

mt1 mt1 at openlaszlo.jp
Mon Jun 26 22:22:54 EDT 2006


Hi forks,

I am converting <combobox> into <datacombobox>. But it has problems.
The document said <datacombobox> was compatible with <combobox>, but the
attribute of
'datapath' did not work. Thus I am using 'itemdatapath' instead.
Someone show me how to convert <combobox> into <datacombobox> with using
'datapath'.
This is my sample code.
I was wondering how to code the part of 'datacombobox2'.

<?xml version="1.0" encoding="UTF-8" ?>
<canvas>
<dataset name="items">
<item value="item0" >item 0</item>
<item value="item1" >item 1</item>
<item value="item2" >item 2</item>
<item value="item3" >item 3</item>
</dataset>

<simplelayout spacing="5"/>
<!-- combobox -->
<combobox>
<textlistitem datapath="items:/item" text="$path{'text()'}"/>
</combobox>

<!-- datacombobox1 -->
<datacombobox itemdatapath="items:/item"/>

<!-- datacombobox2 -->
<datacombobox>
<textlistitem datapath="items:/item" text="$path{'text()'}"/>
</datacombobox>
</canvas>

Thanks in advance.
mt1





More information about the Laszlo-user mailing list