<?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 Loading a File geodatabase on the Server in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/loading-a-file-geodatabase-on-the-server/m-p/815234#M379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to learn how to write scripts with Javascript. I have this book named " Building Web Applications with ArcGIS." They provided the data and the sources is file geodatabases. I have the data stored onto our network drive. I can publish the mxd with the file gdb on to our server. However, i can not set the capibilities as feature access&amp;nbsp; when I go to share the map through ArcGIS Online as a web service. I have tested the script which works but I am unable to&amp;nbsp; see any layers when i run the script through chrome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to save the files as shapefile and publish to the server and then host theough ArcGIS Online. Below i have added a&amp;nbsp; code&amp;nbsp; the Author of this book has provided and how to add a map from the server into a javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked people from Packt and they could not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;Bestaurants Web Application&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel="stylesheet" href="arcgisjs/esri.css"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="arcgisjs/3.10/init.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;dojo.require("esri.map");&lt;/P&gt;&lt;P&gt;function startup()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; //alert("map is about to load");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //create the map object and load it into the 'mymap' div element&lt;/P&gt;&lt;P&gt;&amp;nbsp; var map = new esri.Map("mymap");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //load the layer into an object&lt;/P&gt;&lt;P&gt;&amp;nbsp; var lyr = new esri.layers.ArcGISDynamicMapServiceLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Farcgismachine%3A6080%2Farcgis%2Frest%2Fservices%2FBestaurants%2FMapServer" rel="nofollow" target="_blank"&gt;http://arcgismachine:6080/arcgis/rest/services/Bestaurants/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; //add the layer to map&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(lyr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dojo.addOnLoad(startup);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table border =1 width = '1000px' height = '700px' align =center&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td colspan =2 width='100%' height ='10%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- The toolbar where we will place tools --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The toolbar that contains useful tools to interact with the map and search for restaurants&amp;nbsp; &amp;lt;b&amp;gt; (100% width and 10% height) &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td width='20%' height ='40%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- The legend of the map goes here --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The legend items go here &amp;lt;br&amp;gt; &amp;lt;b&amp;gt;(20% width and 40% height) &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td width='80%' height ='85%' rowspan =2 valign = top&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id='mymap' class='arcgismap' &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td width='20%' height ='40%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!-- The search results will go here --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The search results goes here, we will display the search for the users in this box &amp;lt;br&amp;gt; &amp;lt;b&amp;gt;(20% width and 40% height)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;td colspan =2 width='100%' height ='5%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- The status bar for displaying messages goes here --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The status bar goes here&amp;nbsp; &amp;lt;b&amp;gt; (100% width and 5% height)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 19:22:26 GMT</pubDate>
    <dc:creator>PennySawyer1</dc:creator>
    <dc:date>2016-06-14T19:22:26Z</dc:date>
    <item>
      <title>Loading a File geodatabase on the Server</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/loading-a-file-geodatabase-on-the-server/m-p/815234#M379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to learn how to write scripts with Javascript. I have this book named " Building Web Applications with ArcGIS." They provided the data and the sources is file geodatabases. I have the data stored onto our network drive. I can publish the mxd with the file gdb on to our server. However, i can not set the capibilities as feature access&amp;nbsp; when I go to share the map through ArcGIS Online as a web service. I have tested the script which works but I am unable to&amp;nbsp; see any layers when i run the script through chrome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to save the files as shapefile and publish to the server and then host theough ArcGIS Online. Below i have added a&amp;nbsp; code&amp;nbsp; the Author of this book has provided and how to add a map from the server into a javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked people from Packt and they could not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;Bestaurants Web Application&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel="stylesheet" href="arcgisjs/esri.css"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="arcgisjs/3.10/init.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;dojo.require("esri.map");&lt;/P&gt;&lt;P&gt;function startup()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; //alert("map is about to load");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //create the map object and load it into the 'mymap' div element&lt;/P&gt;&lt;P&gt;&amp;nbsp; var map = new esri.Map("mymap");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //load the layer into an object&lt;/P&gt;&lt;P&gt;&amp;nbsp; var lyr = new esri.layers.ArcGISDynamicMapServiceLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Farcgismachine%3A6080%2Farcgis%2Frest%2Fservices%2FBestaurants%2FMapServer" rel="nofollow" target="_blank"&gt;http://arcgismachine:6080/arcgis/rest/services/Bestaurants/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; //add the layer to map&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(lyr);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dojo.addOnLoad(startup);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table border =1 width = '1000px' height = '700px' align =center&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td colspan =2 width='100%' height ='10%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- The toolbar where we will place tools --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The toolbar that contains useful tools to interact with the map and search for restaurants&amp;nbsp; &amp;lt;b&amp;gt; (100% width and 10% height) &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td width='20%' height ='40%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- The legend of the map goes here --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The legend items go here &amp;lt;br&amp;gt; &amp;lt;b&amp;gt;(20% width and 40% height) &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td width='80%' height ='85%' rowspan =2 valign = top&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;div id='mymap' class='arcgismap' &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td width='20%' height ='40%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!-- The search results will go here --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The search results goes here, we will display the search for the users in this box &amp;lt;br&amp;gt; &amp;lt;b&amp;gt;(20% width and 40% height)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;td colspan =2 width='100%' height ='5%'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;!-- The status bar for displaying messages goes here --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The status bar goes here&amp;nbsp; &amp;lt;b&amp;gt; (100% width and 5% height)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/loading-a-file-geodatabase-on-the-server/m-p/815234#M379</guid>
      <dc:creator>PennySawyer1</dc:creator>
      <dc:date>2016-06-14T19:22:26Z</dc:date>
    </item>
  </channel>
</rss>

