I have a problem with the filteringselect control in extlib
I am using filtering select with dojox.data.QueryReadStore to present json data to the control when user types a value.
The combobox works fine for retrieving values both when clicking the arrow and when typing letters.
The problem is that once you start typing or selecting a value the combobox cannot be empty, as soon as you remove the value the first entry in the json list is added automatically.
So the control do not seem to reflect the dojoattribute “require=false” which is also mentioned in bug reports in dojo site
<xp:this.resources>
<xp:dojoModule name="dijit.form.FilteringSelect"></xp:dojoModule>
<xp:dojoModule name="dojox.data.QueryReadStore"></xp:dojoModule>
</xp:this.resources>
</div>
<xe:djFilteringSelect id="filter" store="jsondata" type="select" searchAttr="name" labelAttr="img" labelType="html" pageSize="10" invalidMessage="value required">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="required" value="false"></xp:dojoAttribute>
</xe:this.dojoAttributes>
</xe:djFilteringSelect>
I have been scanning a few technotes about this on the dojo bug site and it seem to have been a problem and apparently still is
https://bugs.dojotoolkit.org/ticket/5974
I am using this control in a searchform at a customer and in many other places and the user need to be able to clear the value
I can fix a demo database that show you the problem if you like, just let me know where to send it.
One solution that I have seen is to add an emtpry value as the first entry in the json stream but I have not managed to get that to work
My hopes is that you guys can come up with a solution to this in the extlib control even if it is a bug in dojo.