<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamic layers and the Search Widget in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366447#M10324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry, I did not mention feature type layer because I wanted you to switch to that. Feature Type Layers will only show on subLayer of a map Service (as you are seeing), it is not an option for displaying grouped layers. The only layer type that will display grouped layers is dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as my example of:&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&amp;lt;url&amp;gt;&lt;A class="jive-link-external-small unlinked" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0&lt;/A&gt;&amp;lt;/url&amp;gt;&lt;/P&gt;&lt;P&gt;if layer id 0 is a group layer than you can not use 0 you have to search a actual sublayer and not a group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2014 18:42:28 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-10-17T18:42:28Z</dc:date>
    <item>
      <title>Dynamic layers and the Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366443#M10320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with grouped layers for the first time in FlexViewer 3.6. I have an .mxd with several (about 50) layers set into 7 groups. While I can get everything to &lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;display&lt;/SPAN&gt; nicely in the TOC, I cannot get the search tool to function correctly. I think it has to do with the use of sub-layers, as dynamic layers are new to me and I'm fumbling my way through (ESRI does not provide much of info on their use, or maybe I'm just a goober).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I fire up the Search widget, I get an&lt;SPAN style="font-family: 'courier new', courier;"&gt; E0011E: Invalid feature layer &lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;error. My main config file looks like this: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;operationallayers&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layer type="dynamic" visible="true" label="SWITRS Incidents" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sublayer id="0"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &amp;lt;/operationallayers&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I find it strange that by setting a single sublayer, I can see all the layers/groups in my .mxd. I thought I would have to set a sublayer for each... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The .xml for the search widget is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;layers&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layer&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;Valley Division&amp;lt;/name&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;expression&amp;gt;COLLISION_ LIKE '%[value]%'&amp;lt;/expression&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;textsearchlabel&amp;gt;Search by Incident Date [ Example: 6/7/2006 or %2009]&amp;lt;/textsearchlabel&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;titlefield&amp;gt;SWITRS Incidents&amp;lt;/titlefield&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fields all="false"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &amp;lt;field name="PRIMARY_RD"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &amp;lt;field name="SECONDARY_"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &amp;lt;field name="COLLISION_" alias="Incident Date"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;format dateformat="shortDate"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fields&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;symbol&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; &amp;lt;simplemarkersymbol color="0xFF0000" size="5" style="circle" /&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/symbol&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layer&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layers&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;So anyone see anything wrong right off the bat? Am I using dynamic layers or grouped layers incorrectly? Do dynamic layers even work with the search tool? Any advice on using dynamic and grouped layers is greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Matthew Weber&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 17:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366443#M10320</guid>
      <dc:creator>matthewweber</dc:creator>
      <dc:date>2014-10-17T17:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic layers and the Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366444#M10321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes, right off the bat I see that you have some issue with your understanding of dynamic layer use. The fact that you have sublayer element in your layer with type dynamic that has no attributes but id specified, actually does nothing at all for you. Setting a layer as type dynamic basically adds all the sublayer of the map service to your map and the use of the sublayer element is for definitionexpressions and popupconfig use only as documented here: &lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m300000053000000.htm" title="http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m300000053000000.htm"&gt;ArcGIS Viewer for Flex - Dynamic, Tiled, Feature, and Image layer types&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like you are thinking that specifying the sublayer will limit the dynamic layer to only displaying that sublayer id, and that would be incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now on the the issue with your search widget xml configuration. The search widget is designed to search one sublayer of a dynamic map service layer or the specific layer that the layer type of feature points to. So your url tag in your searchWidget.xml should contain the specific layer id of the mapservice that you wish to search on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;url&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears things up for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 17:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366444#M10321</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-17T17:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic layers and the Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366445#M10322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I set the service type to &lt;EM&gt;feature&lt;/EM&gt;&lt;SPAN&gt;, I cannot get my subgroups to display properly. The first layer in the group is "Valley Division" &amp;lt;layer type="feature" visible="true" label="Valley Division" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;This layer contains all the data in the sublayers below it in the group that comprise this division.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The first sublayer in the group below Valley Division is "Amador" &amp;lt;layer type="feature" visible="true" label="Amador Office" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/1" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/1&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The next sublayer is "Auburn" &amp;lt;layer type="feature" visible="true" label="Auburn Office" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/2" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/2&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this format doesn't seem to work. I don't want to add all 50 layers individually, I would to keep them as layer groups. So users can view/search a whole division, or drill down into the smaller area office geographies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I set the search widget to &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;&amp;lt;url&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433; background-color: #f3f3f3;" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0&lt;/A&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;&amp;lt;/url&amp;gt; it gives me the same error as the one in my original posting. So again I think the problem is in using the grouped layers, but maybe not, I defer to you great wisdom...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is an more info I can provide, screenshots of the viewer or the .mxd etc, let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 17:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366445#M10322</guid>
      <dc:creator>matthewweber</dc:creator>
      <dc:date>2014-10-17T17:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic layers and the Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366446#M10323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is how it displays if added as feature layers (they are still grouped in the .mxd). I would like Amador to be a sublayer under Valley Division.&lt;IMG alt="SWITRS Ungrouped.png" class="jive-image image-1" height="348" src="/legacyfs/online/21992_SWITRS Ungrouped.png" style="width: 603px; height: 347.545816733068px;" width="603" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 18:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366446#M10323</guid>
      <dc:creator>matthewweber</dc:creator>
      <dc:date>2014-10-17T18:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic layers and the Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366447#M10324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry, I did not mention feature type layer because I wanted you to switch to that. Feature Type Layers will only show on subLayer of a map Service (as you are seeing), it is not an option for displaying grouped layers. The only layer type that will display grouped layers is dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as my example of:&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&amp;lt;url&amp;gt;&lt;A class="jive-link-external-small unlinked" rel="nofollow" target="_blank"&gt;http://d16-da/arcgis/rest/services/SWITRS_New_10/MapServer/0&lt;/A&gt;&amp;lt;/url&amp;gt;&lt;/P&gt;&lt;P&gt;if layer id 0 is a group layer than you can not use 0 you have to search a actual sublayer and not a group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 18:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-layers-and-the-search-widget/m-p/366447#M10324</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-17T18:42:28Z</dc:date>
    </item>
  </channel>
</rss>

