<?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: Unexpected behavior after changing AttributeEditor example in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/unexpected-behavior-after-changing-attributeeditor/m-p/251336#M1642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your answer. Indeed, changing the code like you suggested makes the original polygons visible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; featureLayer0 = new ArcGISFeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services1.arcgis.com/..../ArcGIS/rest/services/..../FeatureServer/2" rel="nofollow" target="_blank"&gt;http://services1.arcgis.com/..../ArcGIS/rest/services/..../FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;", MODE.SNAPSHOT);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mapView.addLayer(featureLayer0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; featureLayer = new ArcGISFeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services1.arcgis.com/...../ArcGIS/rest/services/...../FeatureServer/2" rel="nofollow" target="_blank"&gt;http://services1.arcgis.com/...../ArcGIS/rest/services/...../FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;", MODE.SELECTION);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; mapView.addLayer(featureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This last line is additional too compared to the original code. It's now almost functioning as it should. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After changing attribute values that define the symbology the new symbology is not yet consequently changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I replaced one of the last lines in the original code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dmsl.refresh();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureLayer.refresh();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that changes are only effectively shown after first choosing Apply and then Edit again followed by Discard. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Strange but less problematic. Replacing the code with featureLayer0.refresh(); didn't help. Somewhere I missed the logic behind this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Despite this using the samples is very effective for extending my knowledge.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Apr 2014 23:02:45 GMT</pubDate>
    <dc:creator>JackSchoenmakers</dc:creator>
    <dc:date>2014-04-19T23:02:45Z</dc:date>
    <item>
      <title>Unexpected behavior after changing AttributeEditor example</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/unexpected-behavior-after-changing-attributeeditor/m-p/251334#M1640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The app shows a datalayer with polygons and with table values that are editable. The layer is added twice for visualization purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After testing the original code and changing the data layers my app only shows polygon objects &lt;/SPAN&gt;&lt;STRONG&gt;after&lt;/STRONG&gt;&lt;SPAN&gt; I changed the table values. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;Original part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;dmsl = new ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver" rel="nofollow" target="_blank"&gt;http://sampleserver&lt;/A&gt;&lt;SPAN&gt; .arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/MapServer");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mapView.addLayer(dmsl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureLayer = new ArcGISFeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/FeatureServer/0" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MODE.SELECTION);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;This works as expected. I modified it to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;dmsl = new ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services1.arcgis.com/......./ArcGIS/rest/services/......./FeatureServer/2" rel="nofollow" target="_blank"&gt;http://services1.arcgis.com/......./ArcGIS/rest/services/......./FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapView.addLayer(dmsl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;featureLayer = new ArcGISFeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services1.arcgis.com/..../ArcGIS/rest/services/......./FeatureServer/2" rel="nofollow" target="_blank"&gt;http://services1.arcgis.com/..../ArcGIS/rest/services/......./FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;", MODE.SELECTION);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mapView.addLayer(featureLayer); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While I don't have an (ArcGIS Server) Mapserver version of the data layer I add it twice from ArcGIS Online. It is a data layer with public rights. What would be the correct solution ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 21:19:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/unexpected-behavior-after-changing-attributeeditor/m-p/251334#M1640</guid>
      <dc:creator>JackSchoenmakers</dc:creator>
      <dc:date>2014-04-09T21:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected behavior after changing AttributeEditor example</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/unexpected-behavior-after-changing-attributeeditor/m-p/251335#M1641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jack,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like you are using a URL that points to hosted FeatureService that you published to ArcGIS Online.&amp;nbsp; If that is true then the line of code that defines the dmsl variable is using that ArcGISDynamicMapServiceLayer class, but is passing in a FeatureService.&amp;nbsp; You could change the class to ArcGISFeatureLayer and add a MODE for the second argument. Then that layer should display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;displayFeatureLayer = new ArcGISFeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services1.arcgis.com/......./ArcGIS/rest/services/......./FeatureServer/2" rel="nofollow" target="_blank"&gt;http://services1.arcgis.com/......./ArcGIS/rest/services/......./FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MODE.SNAPSHOT );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapView.addLayer(displayFeatureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if I am understanding the situation correctly and if this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 16:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/unexpected-behavior-after-changing-attributeeditor/m-p/251335#M1641</guid>
      <dc:creator>RobertBurke</dc:creator>
      <dc:date>2014-04-15T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected behavior after changing AttributeEditor example</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/unexpected-behavior-after-changing-attributeeditor/m-p/251336#M1642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your answer. Indeed, changing the code like you suggested makes the original polygons visible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; featureLayer0 = new ArcGISFeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services1.arcgis.com/..../ArcGIS/rest/services/..../FeatureServer/2" rel="nofollow" target="_blank"&gt;http://services1.arcgis.com/..../ArcGIS/rest/services/..../FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;", MODE.SNAPSHOT);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mapView.addLayer(featureLayer0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; featureLayer = new ArcGISFeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services1.arcgis.com/...../ArcGIS/rest/services/...../FeatureServer/2" rel="nofollow" target="_blank"&gt;http://services1.arcgis.com/...../ArcGIS/rest/services/...../FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;", MODE.SELECTION);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; mapView.addLayer(featureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This last line is additional too compared to the original code. It's now almost functioning as it should. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After changing attribute values that define the symbology the new symbology is not yet consequently changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I replaced one of the last lines in the original code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dmsl.refresh();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureLayer.refresh();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that changes are only effectively shown after first choosing Apply and then Edit again followed by Discard. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Strange but less problematic. Replacing the code with featureLayer0.refresh(); didn't help. Somewhere I missed the logic behind this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Despite this using the samples is very effective for extending my knowledge.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 23:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/unexpected-behavior-after-changing-attributeeditor/m-p/251336#M1642</guid>
      <dc:creator>JackSchoenmakers</dc:creator>
      <dc:date>2014-04-19T23:02:45Z</dc:date>
    </item>
  </channel>
</rss>

