Ok, I've gone full circle on this drill down combobox thing and I've come
back to my original code.
The code below is simple and acts exactly the way I want it to, except that
the items aren't visible in the drop down lists. They are actually there
and selecting an item works exactly as it should, they just aren't visible.
I tried replacing <listitem> with <textlistitem> but while it fixed the
visibility problem, it brought a whole host of other problems that basically
killed it as a viable option.
I tried several incarnations of newcombobox, each one resulted in behaviour
far worse than what I see with the code below or with the textlistitem
version.
So now, I'm back to my original code. My goal is to fix whatever the hell
is wrong with listitem so that the items display properly in the list. I
know it must be possible.
Anyone have any ideas on where I should begin looking?
<canvas width="600" height="400">
<dataset name="dsyear" request="true" ondata="cbyear.selectItemAt(0)"
src="http://www.eio-online.com/symbols/getyear"/>
<dataset name="dsmake" request="true" ondata="cbmake.selectItemAt(0)"
src="http://www.eio-online.com/symbols/getmake"/>
<dataset name="dsmodel" request="true" ondata="cbmodel.selectItemAt(0)"
src="http://www.eio-online.com/symbols/getmodel"/>
<dataset name="dsbody" request="true" ondata="cbbody.selectItemAt(0)"
src="http://www.eio-online.com/symbols/getbody"/>
<dataset name="dsvin" request="true" ondata="cbvin.selectItemAt(0)"
src="http://www.eio-online.com/symbols/getvin"/>
<view x="25" y="25" layout="axis:y">
<combobox id="cbyear" editable="false" width="200">
<method event="onselect">
dsmake.setQueryParam('yearid', cbyear.getValue());
dsmake.doRequest();
</method>
<listitem datapath="dsyear:/resultset/result"
text="$path{'@modelyear'}" value="$path{'@id'}"/>
</combobox>
<combobox id="cbmake" editable="false" width="200">
<method event="onselect">
dsmodel.setQueryParam('yearid', cbyear.getValue());
dsmodel.setQueryParam('makeid', cbmake.getValue());
dsmodel.doRequest();
</method>
<listitem datapath="dsmake:/resultset/result"
text="$path{'@make'}" value="$path{'@id'}"/>
</combobox>
<combobox id="cbmodel" editable="false" width="200">
<method event="onselect">
dsbody.setQueryParam('yearid', cbyear.getValue());
dsbody.setQueryParam('makeid', cbmake.getValue());
dsbody.setQueryParam('modelid', cbmodel.getValue());
dsbody.doRequest();
</method>
<listitem datapath="dsmodel:/resultset/result"
text="$path{'@model'}" value="$path{'@id'}"/>
</combobox>
<combobox id="cbbody" editable="false" width="200">
<method event="onselect">
dsvin.setQueryParam('yearid', cbyear.getValue());
dsvin.setQueryParam('makeid', cbmake.getValue());
dsvin.setQueryParam('modelid', cbmodel.getValue());
dsvin.setQueryParam('bodyid', cbbody.getValue());
dsvin.doRequest();
</method>
<listitem datapath="dsbody:/resultset/result"
text="$path{'@body'}" value="$path{'@id'}"/>
</combobox>
<combobox id="cbvin" editable="false" width="200">
<method event="onselect">
symbol.setAttribute('text', cbvin.getValue());
</method>
<listitem datapath="dsvin:/resultset/result"
text="$path{'@vin'}" value="$path{'@symbol'}"/>
</combobox>
<text id="symbol" bgcolor="silver" width="200"/>
</view>
</canvas>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user