<?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 Changing URLs from config.json files? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426026#M11268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Readers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for the support and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have deployed our working application to a dev server.&amp;nbsp; Sooner, we have to give the contents to the production support team to which we will not have access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the services consumed (feature n map) are visible - but the place where the web map needs to be created is not accessible to us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. itemId (web map id) is on the json - is it possible to modify in js file before the map is launched?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. same for the feature layers listed in json files?&amp;nbsp; example editor widget (out of the box from esri)/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions for handling this would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 22:37:22 GMT</pubDate>
    <dc:creator>Ravichandran_M_Kaushika</dc:creator>
    <dc:date>2016-06-10T22:37:22Z</dc:date>
    <item>
      <title>Changing URLs from config.json files?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426026#M11268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Readers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for the support and suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have deployed our working application to a dev server.&amp;nbsp; Sooner, we have to give the contents to the production support team to which we will not have access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the services consumed (feature n map) are visible - but the place where the web map needs to be created is not accessible to us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. itemId (web map id) is on the json - is it possible to modify in js file before the map is launched?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. same for the feature layers listed in json files?&amp;nbsp; example editor widget (out of the box from esri)/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions for handling this would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 22:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426026#M11268</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2016-06-10T22:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing URLs from config.json files?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426027#M11269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Are you using a web map? If so will the production machine not have access to this web map for some reason? If the edit widget is using a layer from the web map and the production server has acess to the web map then again you should be fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 02:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426027#M11269</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-06-12T02:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing URLs from config.json files?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426028#M11270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;thank you for the reply. We are using web map to get all the UI, widgets, webmap on portal, and all feature layers to get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have 'wrapped' Visual Studio 2013 around the whole web map code folders. Since we are a VS shop, we have configured the project to generate the whole deployable website from the build/publish MyProjWebsite option.&amp;nbsp; We have also figured out to debug JS from the visual studio session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under Project --&amp;gt; My Properties --&amp;gt; Property page, In that set "Specific Page" textbox&amp;nbsp; to "MyProjectVirtualFolder/Default.aspx" - this page was modified using init.html as a starting point. Default.aspx page is created to look like init.html. , this Default.aspx page hands over all captured security n authority credentials and web.config values as var objects to init.js and the behavior is very similar to the web app builder generated app after the init.js is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question re-phrased:&lt;/P&gt;&lt;P&gt;1. all URLs needed for custom widget has been moved to the web.config; read as a config variable in default.aspx.cs, then transferred into a js variable and consumed in the webapp builder based code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In Your enhanced Search widget, there is a place to insert the Feature server Service/0 and that gets inserted into the config.json file. We need to know a way to intercept json config values before they are loaded into the JS files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Same thing applies for itemId value - needs to be intercepted and changed to what is present web.config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks once again Robert for your help and full fledged support to all users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 19:26:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426028#M11270</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2016-06-13T19:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing URLs from config.json files?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426029#M11271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are in new are doing something I have not tried or heard of others trying. Sorry I can not be of much help here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 12:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426029#M11271</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-06-14T12:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing URLs from config.json files?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426030#M11272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good morning. I didn't want to sound sophisticated with all these detailed explanation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simpler version of question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that enhanced search tool, if you want to disable or change the feature layer url, is there a way to do it at runtime using some if else javascript condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 17:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426030#M11272</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2016-06-14T17:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing URLs from config.json files?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426031#M11273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the eSearch widget the layers are inialized in the _initLayerSelect function. So if you were to change the urls in the postCreate function before they are used in the _initLayerSelect function that should work. To change them would be as simple as looping through the this.config.layers array.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:17:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/changing-urls-from-config-json-files/m-p/426031#M11273</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-06-14T19:17:14Z</dc:date>
    </item>
  </channel>
</rss>

