Select to view content in your preferred language

disable enter address feature in 3.1 api

1208
6
Jump to solution
01-09-2013 03:49 AM
PeterHoffman
Deactivated User
I do not want to use the Enter address line in the new version of flexviewer. How can I prevent it from showing?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
GISDev1
Deactivated User
Can you send me an actual code sample that shows where to put this? 
Thanks,

<?xml version="1.0"?> <configuration>     <search visible="false">         <geocoding>             <locator>http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer</locator>         </geocoding>     </search>     <links>         <link label="About">             <content>                 <![CDATA[                      <p align='center'>                          <img src='assets/images/globe.png'/>                          <br/>                          <b><a href="http://links.esri.com/flexviewer" target='_blank'><font size="+2" color="#FFFF00">ArcGIS Viewer for Flex</font></a></b>                      </p>                 ]]>             </content>         </link>     </links> </configuration>  <!--     For valid HTML tags in Flash applications (that can be used for 'content'), see     http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/conversion/TextConverter.html#TEXT_FIELD_HTML_FORMAT --> <!--     See HeaderController widget tag reference at     http://links.esri.com/headercontrollerwidget -->

View solution in original post

0 Kudos
6 Replies
AnthonyGiles
Honored Contributor
Peter,

In the config file for the header control widget you should be able to set <search visible="false" /> see here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Header_Controller_widget_tags/0...

Regards

Anthony
0 Kudos
PeterHoffman
Deactivated User
Can you send me an actual code sample that shows where to put this?
Thanks,
0 Kudos
GISDev1
Deactivated User
Can you send me an actual code sample that shows where to put this? 
Thanks,

<?xml version="1.0"?> <configuration>     <search visible="false">         <geocoding>             <locator>http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer</locator>         </geocoding>     </search>     <links>         <link label="About">             <content>                 <![CDATA[                      <p align='center'>                          <img src='assets/images/globe.png'/>                          <br/>                          <b><a href="http://links.esri.com/flexviewer" target='_blank'><font size="+2" color="#FFFF00">ArcGIS Viewer for Flex</font></a></b>                      </p>                 ]]>             </content>         </link>     </links> </configuration>  <!--     For valid HTML tags in Flash applications (that can be used for 'content'), see     http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/conversion/TextConverter.html#TEXT_FIELD_HTML_FORMAT --> <!--     See HeaderController widget tag reference at     http://links.esri.com/headercontrollerwidget -->
0 Kudos
PeterHoffman
Deactivated User
That worked, thanks.
0 Kudos
AnthonyGiles
Honored Contributor
Peter,

Do not forget to also mark the post as answered to help others search for the answered posts.

Regards

Anthony
0 Kudos
GISDev1
Deactivated User
Anthony actually answered your question, I just posted the code. I up-voted Anthony's post for answering the question.
0 Kudos