<?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: Using GIS Server with Web AppBuilder in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534810#M14037</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;I have found the correct forums since posting the original question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 16:28:40 GMT</pubDate>
    <dc:creator>NEvatt</dc:creator>
    <dc:date>2014-10-27T16:28:40Z</dc:date>
    <item>
      <title>Using GIS Server with Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534804#M14031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the Web AppBuilder for ArcGIs (Beta) overview page (&lt;A class="jive-link-external-small" href="http://doc.arcgis.com/en/web-appbuilder/extend-apps/developer-s-guide-overview.htm" rel="nofollow" target="_blank"&gt;Overview—Web AppBuilder for ArcGIS (Beta) | ArcGIS&lt;/A&gt; ) it mentions the ability to "&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #fefefe;"&gt;connect to server side resources such as map services from ArcGIS Server" .&amp;nbsp; What I am specifically trying to do is to create functions what will add map services via GIS Server as layers to the map (and later figure out how to add them to the layer list and legend).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #fefefe;"&gt;I see that Web AppBuilder uses the esri JS api 3.10, but a simple map.addLayer(dynaLayer1) does not do the trick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #fefefe;"&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #fefefe;"&gt;Thanks, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #fefefe;"&gt;Nat&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 16:15:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534804#M14031</guid>
      <dc:creator>NEvatt</dc:creator>
      <dc:date>2014-10-02T16:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using GIS Server with Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534805#M14032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Web app builder application looks for an ArcGIS.com map.&amp;nbsp; You can add your ArcGIS server layers to your ArcGIS.com map first as layers.&amp;nbsp; Once you save the ArcGIS.com map, those Server layers should show up in your Application built with the Web App Builder.&amp;nbsp; At least that is how i was able to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 18:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534805#M14032</guid>
      <dc:creator>DanAllen</dc:creator>
      <dc:date>2014-10-02T18:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using GIS Server with Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534806#M14033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that.&amp;nbsp; I suppose I wasn't quite specific enough with my question.&amp;nbsp; I am able to add gis server layers to my Arcgis Online map, but what I really want to do is dynamically add other layers to the map after the Arcgis Online map (and web app) has already been loaded.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way, I will be able to show specific layers dependent on which user is viewing the map.&amp;nbsp; That is why I am specifically interested in how web app builder and widgets interact with the GIS server directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 08:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534806#M14033</guid>
      <dc:creator>NEvatt</dc:creator>
      <dc:date>2014-10-03T08:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using GIS Server with Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534807#M14034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah sorry I guess I did not understand your question originally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 12:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534807#M14034</guid>
      <dc:creator>DanAllen</dc:creator>
      <dc:date>2014-10-03T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using GIS Server with Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534808#M14035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The guys from ESRI UK were able to help me get this working.&amp;nbsp; I had been on the right general track, but the missing element was that I needed to be within the BaseWidget in order to add a layer to the map in WAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working code within the widget looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; color: #70ad47;"&gt;//Load all the required dependencies that will be required by the widget workflow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;define(['dojo/_base/declare','jimu/BaseWidget','esri/geometry/Point','esri/layers/ArcGISDynamicMapServiceLayer'],function(declare,BaseWidget,Point,ArcGISDynamicMapServiceLayer){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #70ad47;"&gt;//variable to hold my dynamic map service layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; var agsDMSLayer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; return declare([BaseWidget], {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 9.0pt; color: #70ad47;"&gt;// demo widget code goes here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; baseClass: 'jimu-widget-demo',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt; text-indent: 36.0pt;"&gt;&lt;SPAN style="font-size: 9.0pt; color: #70ad47;"&gt;// event that fires on widget start up&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; startup: function(){&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;this.inherited(arguments);&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; color: #70ad47;"&gt;// this is required as the widget is derived from base widget class and the base widget class will populate the map property &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; agsDMSLayer = new ArcGISDynamicMapServiceLayer("&lt;A href="http://localhost:6080/arcgis/rest/services/Transport/Surface_Transport/MapServer"&gt;http://localhost:6080/arcgis/rest/services/Transport/Surface_Transport/MapServer&lt;/A&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; this.map.addLayer(agsDMSLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 16:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534808#M14035</guid>
      <dc:creator>NEvatt</dc:creator>
      <dc:date>2014-10-27T16:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using GIS Server with Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534809#M14036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In the future you may want to post WAB questions in the Web AppBuilder space &lt;A href="https://community.esri.com/space/2150"&gt;Web AppBuilder for ArcGIS&lt;/A&gt;‌ and there is a Custom WAB Widgets Group &lt;A href="https://community.esri.com/group/1294"&gt;Web AppBuilder Custom Widgets&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 16:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534809#M14036</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-27T16:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using GIS Server with Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534810#M14037</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;I have found the correct forums since posting the original question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 16:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/using-gis-server-with-web-appbuilder/m-p/534810#M14037</guid>
      <dc:creator>NEvatt</dc:creator>
      <dc:date>2014-10-27T16:28:40Z</dc:date>
    </item>
  </channel>
</rss>

