<?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: Feature Layer Second Initialize/Update in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485099#M12498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I guess i solve the problem. Firstly, I registered events like EditCompleted,UpdateCompleted,.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i was using lambda expression events. Because of this, When I set my featurelayer to new parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then, events are still in previous layer. So nothing happened, I changed my code a little bit each time ? register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;events without using lambda exp. so problem solved i guess (not tested yet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank a lot for all your answers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 20:05:16 GMT</pubDate>
    <dc:creator>SelçukTınaz</dc:creator>
    <dc:date>2012-02-22T20:05:16Z</dc:date>
    <item>
      <title>Feature Layer Second Initialize/Update</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485096#M12495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am doing some geoprocessing works in my application. Then, i control many layer in deep if there is any graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in them that intersects with new graphic. There is no problem until here. Lets say i have 2 graphic those are in different&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layers. So, i am trying to reshape them by order. I have ONE featurelayer. For the first one it is working, after first reshape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;operation finished, i am clearing featurelayer ( = null // = new FeatureLayer) and then giving the the other featurelayer Url,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;whereclause and other parameters. Problem goes right here. After giving parameters, i am trying to initialize or update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featurelayer (i am doing some operations inside completed events), but nothing happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try many things but no solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be Perfect!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485096#M12495</guid>
      <dc:creator>SelçukTınaz</dc:creator>
      <dc:date>2012-02-22T11:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Second Initialize/Update</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485097#M12496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you raised the "UpdateFailed" event on the feature layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I discovered, the hard-way, one needs to raise the "UpdateFailed" event as well; the "UpdateCompleted" does not fire wihtout it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
FeatureLayer fl = MyMap.Layers["MyFeatureLayer"] as FeatureLayer;
fl.UpdateCompleted += MyFeatureLayer_UpdateCompleted;
fl.UpdateFailed += new EventHandler&amp;lt;TaskFailedEventArgs&amp;gt;(MyFeatureLayer_UpdateFailed);

private void MyFeatureLayer_UpdateFailed(object sender, EventArgs args)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer fl = sender as FeatureLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // display any errors if any (optional).
}
&lt;/PRE&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;Hugo.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485097#M12496</guid>
      <dc:creator>HugoCardenas</dc:creator>
      <dc:date>2021-12-11T21:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Second Initialize/Update</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485098#M12497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are you using to reshape? The following SDK sample might help: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Reshape"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Reshape&lt;/A&gt;&lt;SPAN&gt;. It could also be that Reshape failed. Initialize failed or Update is not called. It is best to run Fiddler with your application to see the last web request made and/or set breakpoints to see which code is not hit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 17:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485098#M12497</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-02-22T17:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Second Initialize/Update</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485099#M12498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I guess i solve the problem. Firstly, I registered events like EditCompleted,UpdateCompleted,.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i was using lambda expression events. Because of this, When I set my featurelayer to new parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then, events are still in previous layer. So nothing happened, I changed my code a little bit each time ? register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;events without using lambda exp. so problem solved i guess (not tested yet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank a lot for all your answers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 20:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/feature-layer-second-initialize-update/m-p/485099#M12498</guid>
      <dc:creator>SelçukTınaz</dc:creator>
      <dc:date>2012-02-22T20:05:16Z</dc:date>
    </item>
  </channel>
</rss>

