<?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 How do I write a selection (only text attributes) into a database table? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-write-a-selection-only-text-attributes/m-p/374330#M34731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relatively new to the JavaScript API. I'm looking for help with a, I guess, quite simple case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is what I have so far:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A JavaScript API based application, with a FeatureLayer showing some sites, represented as point objects. &lt;/P&gt;&lt;P&gt;The FeatureLayer is defined in ArcMap as a Query Layer; data is fed by the database table SITES with numeric LON and LAT coordinates; points are displayed as XY Data from these LON and LAT coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5;"&gt;This is what the application is supposed to do:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;When a user selects one or several sites (with &lt;/SPAN&gt;mouse click)&lt;SPAN style="line-height: 1.5;"&gt;, the OBJECT_ID of the selected objects and the USER_ID of the actual user must be written in another database table &lt;/SPAN&gt;called&lt;SPAN style="line-height: 1.5;"&gt; SITES_USERSELECTION. This table has only two attributes USER_ID and OBJECT_ID, defined as compound primary key. No spatial attributes are required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know already how to extract the USER_ID and OBJECT_ID from my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5;"&gt;This is where I'm stuck:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;How can I write my selection into my database table SITES_USERSELECTION? Any hints?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Tobias&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2015 13:08:19 GMT</pubDate>
    <dc:creator>TobiasBrühlmeier1</dc:creator>
    <dc:date>2015-03-27T13:08:19Z</dc:date>
    <item>
      <title>How do I write a selection (only text attributes) into a database table?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-write-a-selection-only-text-attributes/m-p/374330#M34731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relatively new to the JavaScript API. I'm looking for help with a, I guess, quite simple case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is what I have so far:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A JavaScript API based application, with a FeatureLayer showing some sites, represented as point objects. &lt;/P&gt;&lt;P&gt;The FeatureLayer is defined in ArcMap as a Query Layer; data is fed by the database table SITES with numeric LON and LAT coordinates; points are displayed as XY Data from these LON and LAT coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5;"&gt;This is what the application is supposed to do:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;When a user selects one or several sites (with &lt;/SPAN&gt;mouse click)&lt;SPAN style="line-height: 1.5;"&gt;, the OBJECT_ID of the selected objects and the USER_ID of the actual user must be written in another database table &lt;/SPAN&gt;called&lt;SPAN style="line-height: 1.5;"&gt; SITES_USERSELECTION. This table has only two attributes USER_ID and OBJECT_ID, defined as compound primary key. No spatial attributes are required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I know already how to extract the USER_ID and OBJECT_ID from my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5;"&gt;This is where I'm stuck:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;How can I write my selection into my database table SITES_USERSELECTION? Any hints?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Tobias&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 13:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-write-a-selection-only-text-attributes/m-p/374330#M34731</guid>
      <dc:creator>TobiasBrühlmeier1</dc:creator>
      <dc:date>2015-03-27T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write a selection (only text attributes) into a database table?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-write-a-selection-only-text-attributes/m-p/374331#M34732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tobias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.request-amd.html#esrirequest"&gt;esri/request&lt;/A&gt; class, you can call the REST API's &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r30000010m000000"&gt;addFeatures &lt;/A&gt;method.&amp;nbsp; Below is an example that may get you on the right track:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/103601/arcgis-javascript-api-query-add-features-without-map-using-rest-api" title="http://gis.stackexchange.com/questions/103601/arcgis-javascript-api-query-add-features-without-map-using-rest-api"&gt;ArcGIS Javascript API Query &amp;amp; Add features without map using REST API - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 15:44:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-write-a-selection-only-text-attributes/m-p/374331#M34732</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-03-27T15:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write a selection (only text attributes) into a database table?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-write-a-selection-only-text-attributes/m-p/374332#M34733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jake, this is pushing me into the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution requires a feature service (with addFeatures enabled). But doesn't a feature service require a spatial attribute? Is it possible just to create a feature service with only non spatial attributes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm investigating another way at the moment: Couldn't it be possible to do some kind of a direct connection to a Registered Data Store? In my example, we have an Oracle Database (non-spatial), in ArcGIS for Server registered as Data Store. Wouldn't it be possible to build something on top of classes like TableDataSource?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 13:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-write-a-selection-only-text-attributes/m-p/374332#M34733</guid>
      <dc:creator>TobiasBrühlmeier1</dc:creator>
      <dc:date>2015-03-30T13:46:20Z</dc:date>
    </item>
  </channel>
</rss>

