I am populating a combobox with dynamic dataset and at the same time I also create these combobox and listitem dynamicaly.
The problem is unual in the sense that whatever item selected from drop down list is displayed partially on the combobox.
By partially i mean if listitem is .eg :
6000000,id,asdsadsads
only 6000000.i is displayed.
While dropdown shows the items complete text but as user selects it , it get trimmed from its end.
Code ---
// listitem class defined.
<class name="reconlistitem" extends="listitem" datapath="remedyds:/reconciliationXML/setupXML/fieldInformationXML/fieldIdentifierListXML/fieldIdentifierXML"
value="$path{'@name'}" width="${parent.width}">
<attribute name="text" value="$path{'@name'}" type="string"/>
<attribute name="widgettype" type="string" value="listitem"/>
<!-- constrain the text to the text attribute of listitem -->
<text x="10" width="${parent.width}" text="${classroot.text}" fgcolor="0x4B4B4B" font="Arial"/>
</class>
// combo box xlass defined.
<class name="solidcombo" extends="combobox">
<attribute name="widgettype" type="string" value="combo"/>
</class>
// instantialtion code is like this
combo=new solidcombo(fieldholderview);
combo.setAttribute('id',name);
combo.setWidth(180);
combo.setAttribute('defaulttext','choose one ....');
combo.setAttribute('editable',false);
droplistitem=new reconlistitem(combo);
droplist.setWidth(180);
The important point here is that if I use static combo box menaing if i do not instantiate listitem and combobox it will work fine.
thanks,
Ankit.
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
