<?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 Make point in featureclass from lat long entered in a webform in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-point-in-featureclass-from-lat-long-entered/m-p/535307#M49904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a web form which prompts the user for a lat and long.&amp;nbsp; I simply want the least amount of code required to insert the point into a featureclass if it does not exist and update it if it already does exist.&amp;nbsp; No map is required by the interface, just text boxes for lat and long.&amp;nbsp; I will have a primary key on the feature class that I can search on to update a point that already exists.&amp;nbsp; I found this in the Silverlight forum, but I think it would be cleaner to simply add the javascript to the web form to perform the same thing. Is that possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer layer = new FeatureLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Url = myLayerUrl;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.AutoSave = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic feature = new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.Geometry = myGeometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.Attributes.Add("SUMMARY", "hardcoded description 1000");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Graphics.Add(feature);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.SaveEdits();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2013 22:40:11 GMT</pubDate>
    <dc:creator>AlpineTech</dc:creator>
    <dc:date>2013-04-09T22:40:11Z</dc:date>
    <item>
      <title>Make point in featureclass from lat long entered in a webform</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-point-in-featureclass-from-lat-long-entered/m-p/535307#M49904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a web form which prompts the user for a lat and long.&amp;nbsp; I simply want the least amount of code required to insert the point into a featureclass if it does not exist and update it if it already does exist.&amp;nbsp; No map is required by the interface, just text boxes for lat and long.&amp;nbsp; I will have a primary key on the feature class that I can search on to update a point that already exists.&amp;nbsp; I found this in the Silverlight forum, but I think it would be cleaner to simply add the javascript to the web form to perform the same thing. Is that possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer layer = new FeatureLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Url = myLayerUrl;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.AutoSave = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic feature = new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.Geometry = myGeometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.Attributes.Add("SUMMARY", "hardcoded description 1000");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.Graphics.Add(feature);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer.SaveEdits();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 22:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-point-in-featureclass-from-lat-long-entered/m-p/535307#M49904</guid>
      <dc:creator>AlpineTech</dc:creator>
      <dc:date>2013-04-09T22:40:11Z</dc:date>
    </item>
  </channel>
</rss>

