Select to view content in your preferred language

Enhanced Search Widget URL Search Configuration

5228
42
04-19-2011 09:34 AM
JamesFaron
Frequent Contributor
Robert,

I am getting an error in the MapManager after inputting the code changes that are specified in the Enhanced Search Widget URL Search Configuration pdf. The error is to the line of code as follows from private function mapLoadComplete function utimerComplete:
ViewerContainer.getInstance().widgetManager.getWidget(id);

The error is 1061: Call to a possibly undefined method getWidget through a reference with static type com.esri.viewer.managers:WidgetManager

Thanks,
Jim Faron
Tags (2)
0 Kudos
42 Replies
RobertScheitlin__GISP
MVP Emeritus
Nate,

  This line in the SearchWidget.mxml is what centers the datagrid.

PopUpManager.centerPopUp(myfloatdg);


Is this truly your latest code in your SearchWidget.xml?

<symbols>
     <simplefillsymbol color="0x000000" alpha="0.0">
      <outline color="0x000000" alpha="0.0" width="2"/>
     </simplefillsymbol>
     <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol
          defined for your point results NOT BOTH. picturemarkersymbol will override simplemarkersymbol
          if you do not have it commented out. --> 
     <!--<simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.0" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0x000000" alpha="1" width="1"/>
     </simplemarkersymbol>-->
     <picturemarkersymbol url="assets/images/i_search2.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/>
    </symbols>


Because it does not make sense what you are seeing then.
0 Kudos
NateRose
Deactivated User
Robert,

That's why it seems odd, had it fixed before, but once I got the swf to compile then the blue circles showed up.  See current xml file and image.

Nate
0 Kudos
NateRose
Deactivated User
Robert,

Thanks for all your help.  I really appreciate it since I'm just getting into setting up applications with the flex viewer.  You have created some great tools for us to use.

Nate
0 Kudos