Select to view content in your preferred language

Question about Dropdown list in eSearch Widget

1927
6
07-12-2011 07:34 AM
LeiZhou
New Contributor III
I tried to add a drop down list in SearchWidget.xml,

<expression alias="School Name" textsearchlabel="Search Elementary Name:" userlist="Croyden Ele,Rosewood Ele,Tidwell Ele" >upper(Name) = upper('[value]')</expression>


After that I open the widget, when switch the items in dropdown list, the followig error always appear. Anyone has any idear what's going on? Thanks a lot!

ArgumentError: $someTempUICToRemoveAfterFinished is not found in this Group.
 at spark.components::Group/getElementIndex()
 at spark.components::Group/removeElement()
 at spark.components::SkinnableContainer/removeElement()
 at widgets.eSearch::SearchWidgetFloatDG/onTempUICCreated()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at mx.core::UIComponent/set initialized()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Steven,

   So the error does not occur if you don't have the floating data grid open?
0 Kudos
LeiZhou
New Contributor III
For the first time I open dropdown list, it is normal--the float grid pops up, everything is OK; after that if I switch to another item, the error message will pop up. Thanks!

If I remove userlist="Croyden Ele,Rosewood Ele,Tidwell Ele", just use text search, it works well.



I tried to add a drop down list in SearchWidget.xml,

<expression alias="School Name" textsearchlabel="Search Elementary Name:" userlist="Croyden Ele,Rosewood Ele,Tidwell Ele" >upper(Name) = upper('[value]')</expression>


After that I open the widget, when switch the items in dropdown list, the followig error always appear. Anyone has any idear what's going on? Thanks a lot!

ArgumentError: $someTempUICToRemoveAfterFinished is not found in this Group.
 at spark.components::Group/getElementIndex()
 at spark.components::Group/removeElement()
 at spark.components::SkinnableContainer/removeElement()
 at widgets.eSearch::SearchWidgetFloatDG/onTempUICCreated()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at mx.core::UIComponent/set initialized()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at mx.managers::LayoutManager/doPhasedInstantiationCallback()
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Steven,

   Try keeping the userlist but don't open the datagrid. I need to try and narrow down where the error is. Also what version are you using of the eSearch?
0 Kudos
LeiZhou
New Contributor III
It is Version 2.3.2.  Thanks a lot!

For the first time I open dropdown list, it is normal--the float grid pops up, everything is OK; after that if I switch to another item, the error message will pop up. Thanks!

If I remove userlist="Croyden Ele,Rosewood Ele,Tidwell Ele", just use text search, it works well.
0 Kudos
LeiZhou
New Contributor III
What you mean by "Don't open the datagrid"? It is automatically open when I do search. Thanks!

For the first time I open dropdown list, it is normal--the float grid pops up, everything is OK; after that if I switch to another item, the error message will pop up. Thanks!

If I remove userlist="Croyden Ele,Rosewood Ele,Tidwell Ele", just use text search, it works well.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Steven,

   That is because you have the <autoopendatagrid>true</autoopendatagrid> for that layer than.
0 Kudos