<?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: Newbie: how to dynamically add layer from oracle in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725226#M67325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;swingley,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes i could easily use a single table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;disadvatages with this approach (although not show stoppers):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- It will grow over time and will need some kind of maint (like purge entries &amp;gt; 2 days old). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- It will also become terribly fragmented which may affect performance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- there may be lock contention issues during insert/delete activity&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can get around all of the above issues with some engineering and will do this if there is no other way that's less complicated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you a whole lot for your advice - i really was at a loss on how to proceed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if anyone else has any ideas please share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 00:48:38 GMT</pubDate>
    <dc:creator>steveevans</dc:creator>
    <dc:date>2012-07-03T00:48:38Z</dc:date>
    <item>
      <title>Newbie: how to dynamically add layer from oracle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725224#M67323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Total newbie here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have an asp .net (web) application that dynamically creates a new oracle table during a users session (table name is radomly generated).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This table has 3 columns: UniqueId, X_coord, Y_coord.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need to change this app so that it can plot these points on a map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What is the best way of doing this within the javascript api (presuming javascript api is the way to go).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BTW, we have arcgis 10.1 server and desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks a whole lot in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 14:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725224#M67323</guid>
      <dc:creator>steveevans</dc:creator>
      <dc:date>2012-07-02T14:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: how to dynamically add layer from oracle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725225#M67324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need to publish your table via ArcGIS Server to use it in a JavaScript API app. Since your table is generated per user session, I don't think there's a clean way to do this. Could you modify your architecture to always have a single table that has a user_id column and then filter records from the table based on a user_id? You could then have a process that periodically cleans up your table so it doesn't grow indefinitely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, if you know the name of the per-session table, and it's published as a web service, you could use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_esri.htm#request"&gt;esri.request&lt;/A&gt;&lt;SPAN&gt; to send a request to your web service to get your points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 20:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725225#M67324</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-07-02T20:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: how to dynamically add layer from oracle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725226#M67325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;swingley,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes i could easily use a single table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;disadvatages with this approach (although not show stoppers):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- It will grow over time and will need some kind of maint (like purge entries &amp;gt; 2 days old). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- It will also become terribly fragmented which may affect performance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- there may be lock contention issues during insert/delete activity&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can get around all of the above issues with some engineering and will do this if there is no other way that's less complicated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you a whole lot for your advice - i really was at a loss on how to proceed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if anyone else has any ideas please share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 00:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725226#M67325</guid>
      <dc:creator>steveevans</dc:creator>
      <dc:date>2012-07-03T00:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: how to dynamically add layer from oracle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725227#M67326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the simplest solution is having a rest service that returns your points based on the user session id. Once you get the points, create a graphic layer and add these point to the layer, so they will always be at the top of the map with a symbol you defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing to look after is the spatial reference, if the points are the same as the base layer, no transform is needed, if not it could be that you will need a transform using the project method of the geometry service of your ArcGis server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Johnny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 08:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725227#M67326</guid>
      <dc:creator>JohnnyPenet</dc:creator>
      <dc:date>2012-07-03T08:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: how to dynamically add layer from oracle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725228#M67327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Steve,&lt;BR /&gt;&lt;BR /&gt;I think the simplest solution is having a rest service that returns your points based on the user session id. Once you get the points, create a graphic layer and add these point to the layer, so they will always be at the top of the map with a symbol you defined.&lt;BR /&gt;The only thing to look after is the spatial reference, if the points are the same as the base layer, no transform is needed, if not it could be that you will need a transform using the project method of the geometry service of your ArcGis server.&lt;BR /&gt;&lt;BR /&gt;Johnny&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johnny,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is this the same as one of swingleys prev suggestions where he said:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Alternatively, if you know the name of the per-session table, and it's published as a web service, you could use esri.request to send a request to your web service to get your points. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or is this something quite different?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 11:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725228#M67327</guid>
      <dc:creator>steveevans</dc:creator>
      <dc:date>2012-07-03T11:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie: how to dynamically add layer from oracle</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725229#M67328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, the same as swingleys . This is the solution i prefer. Putting it all into one table could result in a less stable situation (locks !!!)&amp;nbsp; and difficult to simulate (large) multi user access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Johnny&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 12:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/newbie-how-to-dynamically-add-layer-from-oracle/m-p/725229#M67328</guid>
      <dc:creator>JohnnyPenet</dc:creator>
      <dc:date>2012-07-03T12:55:47Z</dc:date>
    </item>
  </channel>
</rss>

