<?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: Select Polyline (save attributes) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348469#M32222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was not able to get it to work with M-aware feature classes.&amp;nbsp; I ended up exporting the polyline feature classes, and removing the M-aware functionality.&amp;nbsp; I then imported them back in to SDE, and set them up as Feature Layers.&amp;nbsp; I was then able to save edits on the features...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2013 11:29:14 GMT</pubDate>
    <dc:creator>AaronDrake</dc:creator>
    <dc:date>2013-01-28T11:29:14Z</dc:date>
    <item>
      <title>Select Polyline (save attributes)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348465#M32218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following code will select point and polyline features in a web editing application I am working on.&amp;nbsp; I can save any attribute changes I make to the point features.&amp;nbsp; However, when I attempt to save changes to a polyline feature class I get the following (via Firebug):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Firebug Output:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;{"addResults":[],"updateResults":[{"objectId":2427,"globalId" : null,"success":false,"error":{"code":-2147221399,"description":"Geometry does not have M Value(s), hence cannot update the feature."}}],"deleteResults":[]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the polyline feature class on arcgis.com, and was able to save the attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;
var ext = new esri.geometry.Extent(evt.mapPoint.x - 50, evt.mapPoint.y - 50, evt.mapPoint.x + 50, evt.mapPoint.y + 50, mapSR);
selectQuery.geometry = ext;

FL.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {
if (features.length &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //store the current feature
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateFeature = features[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setTitle(FL.name); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
} else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert('No features selected!');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
}
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 16:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348465#M32218</guid>
      <dc:creator>AaronDrake</dc:creator>
      <dc:date>2011-07-26T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select Polyline (save attributes)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348466#M32219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Aaron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you found any solution to your problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same error. I'm trying to save geometry edits on a polyline feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 13:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348466#M32219</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2013-01-23T13:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select Polyline (save attributes)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348467#M32220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to ESRI documentation, you are not able to update existing polyline feature classes that are M-aware.&amp;nbsp; You can create new features that have an m value of NaN or you can delete existing polyline features but you can not modify existing polyline features with m values/m-aware.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that you can test this by creating a new polyline feature class that is not M-aware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone, please correct me if I am wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Diana&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 21:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348467#M32220</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-01-23T21:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select Polyline (save attributes)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348468#M32221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My polylines are not m-aware. I just want to modify polylines. I don't need to create them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 07:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348468#M32221</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2013-01-24T07:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select Polyline (save attributes)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348469#M32222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was not able to get it to work with M-aware feature classes.&amp;nbsp; I ended up exporting the polyline feature classes, and removing the M-aware functionality.&amp;nbsp; I then imported them back in to SDE, and set them up as Feature Layers.&amp;nbsp; I was then able to save edits on the features...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 11:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348469#M32222</guid>
      <dc:creator>AaronDrake</dc:creator>
      <dc:date>2013-01-28T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select Polyline (save attributes)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348470#M32223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for confirming my suspicions.&amp;nbsp; I am not sure when ESRI will support editing functionality for m-aware polyline featureclasses from within their Feature Services.&amp;nbsp; I have done a lot of Desktop ArcObjects development and we had to manually manage the m-aware values when users were actively modifying geometry of current features.&amp;nbsp; Essentially, we set the m-values to NaN (not a number) in order to ensure that m-values were not improperly indicated.&amp;nbsp; Not sure why this couldn't be done within their web editing functinoality...or at least provide the Feature Service with an option to allow editing of features with m-values.&amp;nbsp; Something like a "check box" to indicate to allow editing of m-aware feature classes and to set existing m-value to "NaN" when updating the geometry of existing features.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently the only option for editing m-aware feature classes over the web is to replicate your SDE feature classes and remove all m-aware feature classes (essentially what you did).&amp;nbsp; Doesn't seem like a very streamlined workflow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 13:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348470#M32223</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-01-28T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select Polyline (save attributes)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348471#M32224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for your feedbacks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 15:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-polyline-save-attributes/m-p/348471#M32224</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2013-01-28T15:48:05Z</dc:date>
    </item>
  </channel>
</rss>

