Select option autocomlete is not working properly

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
I have created year filter from selection option with manual filter.
In that many options started from 1901 to 2015.

So it is converted to autocomplete.
Now when I am tried to select any year at that time below javascript error occur.
because of that the filter is not working.


TypeError: a is undefined
SelectList.prototype.indexOf(a=undefined)skuid__SkuidJS (line 26)
SelectList.prototype.selectItem(a=undefined)skuid__SkuidJS (line 26)
e.selectItem(a="2015", b=undefined)skuid__SkuidJS (line 30)
utils.registerPlugin/$.fn[a](c="selectItem")skuid__SkuidJS (line 27)
e.draw/e<.onChange(a=Object { originalEvent={...}, type="autocompleteselect", timeStamp=15979453, more...}, b=Object { item={...}})skuid__SkuidJS (line 30)
e.Widget.prototype._trigger(t="select", i=Object { originalEvent={...}, type="autocompleteselect", timeStamp=15979453, more...}, s=Object { item={...}})skuid__JQuery (line 7)
._create/<.menuselect(e=Object { originalEvent={...}, type="menuselect", timeStamp=15979453, more...}, t=Object { item={...}})skuid__JQuery (line 8)
r()skuid__JQuery (line 7)
o.event.dispatch(a=Object { originalEvent={...}, type="menuselect", timeStamp=15979453, more...})skuid__JQuery (line 3)
o.event.add/r.handle(a=Object { originalEvent={...}, type="menuselect", timeStamp=15979453, more...})skuid__JQuery (line 3)
o.event.trigger(b=Object { originalEvent={...}, type="menuselect", timeStamp=15979453, more...}, c=[Object { originalEvent={...}, type="menuselect", timeStamp=15979453, more...}, Object { item={...}}], d=ul#ui-id-15.ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content, e=undefined)skuid__JQuery (line 3)
.trigger/<()skuid__JQuery (line 3)
.each(a=Object[ul#ui-id-15.ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content], b=function(), c=undefined)skuid__JQuery (line 2)
o.prototype.each(a=function(), b=undefined)skuid__JQuery (line 2)
.trigger(a=Object { originalEvent={...}, type="menuselect", timeStamp=15979453, more...}, b=Object { item={...}})skuid__JQuery (line 3)
e.Widget.prototype._trigger(t="select", i=Object { originalEvent={...}, type="menuselect", timeStamp=15979453, more...}, s=Object { item={...}})skuid__JQuery (line 7)
.select(t=Object { originalEvent=Event click, type="click", timeStamp=15979453, more...})skuid__JQuery (line 8)
e.widget/</h[t]</<()skuid__JQuery (line 7)
._create/<["click .ui-menu-item"](t=Object { originalEvent=Event click, type="click", timeStamp=15979453, more...})skuid__JQuery (line 7)
r()skuid__JQuery (line 7)
o.event.dispatch(a=Object { originalEvent=Event click, type="click", timeStamp=15979453, more...})skuid__JQuery (line 3)
o.event.add/r.handle(a=click clientX=195, clientY=228)

Let me know how to resolve this error.



Photo of Rohit Vakhariya

Rohit Vakhariya

  • 1,054 Points 1k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
I've looked at your page.  You do not need so much complexity in your manual source. 

Have each entry in the manual source affect the default condition and pass the year's value.  See image below. 




Alternatively, you should create an aggregate query from the data - grouping on year.  Then you can make the option source of your filter be the values in that model. 

I think you should try one of these before we dig much further. 
Photo of Rohit Vakhariya

Rohit Vakhariya

  • 1,054 Points 1k badge 2x thumb
Thanks.Rob.