<?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: Adding a feature layer in WAB 1.3 in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122668#M3598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, I will have a look at the Local Layer Widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 May 2016 21:33:09 GMT</pubDate>
    <dc:creator>WayneBoras</dc:creator>
    <dc:date>2016-05-22T21:33:09Z</dc:date>
    <item>
      <title>Adding a feature layer in WAB 1.3</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122664#M3594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a feature layer from ArcGIS Server to my app. When I add the feature service URL to the operational layers in config.json, it doesn't get added to the map. Adding the map service URL for the same layer works fine. Do I have to add it programatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 05:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122664#M3594</guid>
      <dc:creator>WayneBoras</dc:creator>
      <dc:date>2016-05-21T05:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a feature layer in WAB 1.3</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122665#M3595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wayne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am a little confused by this comment:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;When I add the feature service URL to the operational layers in config.json&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Adding the map service URL for the same layer works fine&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Adding service url to the config.json has not been supported since the Beta2 of WAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All layers have to be added to the web map that the app uses or you have to use custom widgets to handle this like the Local Layer widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 12:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122665#M3595</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-21T12:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a feature layer in WAB 1.3</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122666#M3596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for not being more clear with my original question. If I add the Map Service to the config file as follows, it works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"operationalLayers":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmyserver%3A6080%2Farcgis%2Frest%2Fservices%2FMaps%2FMyService%2FMapService" target="_blank"&gt;http://myserver:6080/arcgis/rest/services/Maps/MyService/MapServer&lt;/A&gt;​&lt;SPAN&gt;",&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "My Map Service"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I step through the code, map.layerIds has two elements: base0 and operational0. I can access features using the operational0 id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would instead like to add the feature layer so that I can perform feature editing via a custom widget that I've created. I tried to add the feature layer by replacing the above code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"operationalLayers":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmyserver%3A6080%2Farcgis%2Frest%2Fservices%2FMaps%2FMyService%2FFeatureServer%2F0" target="_blank"&gt;http://myserver:6080/arcgis/rest/services/Maps/MyService/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 1,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "title": "My Feature Service"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, map.layerIds only has the base0 element; the operational layer has not been added to the map, so I can't access the features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefullly this is a better explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122666#M3596</guid>
      <dc:creator>WayneBoras</dc:creator>
      <dc:date>2021-12-11T07:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a feature layer in WAB 1.3</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122667#M3597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Wayne,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; Adding layers in this way to the config.json is not supported. You should look at the Local Layer Widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 May 2016 20:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122667#M3597</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-22T20:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a feature layer in WAB 1.3</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122668#M3598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, I will have a look at the Local Layer Widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 May 2016 21:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/adding-a-feature-layer-in-wab-1-3/m-p/122668#M3598</guid>
      <dc:creator>WayneBoras</dc:creator>
      <dc:date>2016-05-22T21:33:09Z</dc:date>
    </item>
  </channel>
</rss>

