<?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: TemplatePicker adds two features in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396132#M10237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tested secured services too but have not seen this behavior. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the same code with different service did not produce the same outcome? With AutoSave=False can you try to add one feature and copy-paste the parameters from Fiddler then create the /applyEdits web request using your web browser and check if you still get one extra feature added to your service? You can also monitor the graphics.Count after FeatureLayer.Update() if this number increases by 2 every time you add 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please share some code. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 16:02:59 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-05-06T16:02:59Z</dc:date>
    <item>
      <title>TemplatePicker adds two features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396129#M10234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone experienced this problem with the TemplatePicker control?:&amp;nbsp; I have discovered that when I try to add a new feature and also try to update some of the attributes for that feature (then click apply), &lt;/SPAN&gt;&lt;STRONG&gt;it actually adds two records in the database at the same exact point&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been troubleshooting this with &lt;/SPAN&gt;&lt;STRONG&gt;Fiddler&lt;/STRONG&gt;&lt;SPAN&gt; and this appears to be the sequence of events:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Click on the feature in the template picker pallette&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Click a point on the map (at this point in Fiddler I see a call to my FeatureService with ../FeatureServer/0/ApplyEdits)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Then the dialog box opens on the map so I can edit the attributes for the feature I just placed on the map.&amp;nbsp; When I click 'apply' to persist the attribute values I see another call to my feature service ../FeatureServer/0/ApplyEdits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. now when I go to review the results in the database I see one record with only an objectID, and a second record with the next sequential ObjectID plus all the attribute values I just entered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ObjectID: 6849585&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Company:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CU:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ObjectID: 6849586&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Company: WPL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CU: X4000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been able to repeat scenario this several times.&amp;nbsp; Has anyone else experienced this same problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 21:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396129#M10234</guid>
      <dc:creator>RickThiel</dc:creator>
      <dc:date>2011-05-04T21:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: TemplatePicker adds two features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396130#M10235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you reproduce with sampleserver service? If yes, can you provide us some code like how FeatureLayer and TemplatePicker are setup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 00:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396130#M10235</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-05-05T00:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: TemplatePicker adds two features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396131#M10236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; I just tried the following sample service:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seemed to work just fine.&amp;nbsp; No double entries.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I view the network activity through Fiddler, the sequence of events seemed to match what I saw when I was using my feature service.&amp;nbsp; For example in Fiddler I could still see the two "/applyEdits": once when I clicked the point on the map; and the second time when I clicked "Apply" in the attribute window.&amp;nbsp; The biggest difference I saw: with my feature service it seems to take 17 seconds for the /applyEdits to complete and I do not get an object id immediately;&amp;nbsp; with the ESRI sample service the /applyEdits happen immediately and I see the object ID immediately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One note:&amp;nbsp; for our services, we have security enabled.&amp;nbsp; We are using Windows authentication.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 15:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396131#M10236</guid>
      <dc:creator>RickThiel</dc:creator>
      <dc:date>2011-05-06T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: TemplatePicker adds two features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396132#M10237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tested secured services too but have not seen this behavior. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the same code with different service did not produce the same outcome? With AutoSave=False can you try to add one feature and copy-paste the parameters from Fiddler then create the /applyEdits web request using your web browser and check if you still get one extra feature added to your service? You can also monitor the graphics.Count after FeatureLayer.Update() if this number increases by 2 every time you add 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please share some code. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 16:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396132#M10237</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-05-06T16:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: TemplatePicker adds two features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396133#M10238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I set the AutoSave to False, it does nothing.&amp;nbsp; I do not see any /applyEdits.&amp;nbsp; Would it be helpful to send you the Fiddler session (.saz) file?&amp;nbsp; I thought about posting it here, but I wasn't so sure that was a good idea.&amp;nbsp; I'm not sure what information I might be exposing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about not including the code earlier.&amp;nbsp; I am following the ESRI samples very closely. But here is my &lt;/SPAN&gt;&lt;STRONG&gt;xaml&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;xaml.cs&lt;/STRONG&gt;&lt;SPAN&gt; if you want to take a look.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:Map x:Name="MapControl" Background="White" IsLogoVisible="False"&amp;gt;
&amp;lt;esri:FeatureLayer ID="Poles"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://msnwingisd1/ArcGIS/rest/services/Test1_PoleUpdates/FeatureServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoSave="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mode="OnDemand"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaximumResolution="43.4028"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields="OBJECTID,COMPANY,CU"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.Clusterer&amp;gt;
 &amp;lt;esri:FlareClusterer FlareBackground="Orange"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlareForeground="Black"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaximumFlareCount="9" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.Clusterer&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.MapTip&amp;gt;
 &amp;lt;Border CornerRadius="10"
&amp;nbsp; BorderBrush="#FF222957"
&amp;nbsp; BorderThickness="3"
&amp;nbsp; Margin="0,0,15,15"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Border.Background&amp;gt;
&amp;nbsp; &amp;lt;LinearGradientBrush EndPoint="1.038,1.136"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartPoint="0.015,0.188"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;GradientStop Color="#FFD1DFF2" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;GradientStop Color="#FF0088FF"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Offset="0.946" /&amp;gt;
&amp;nbsp; &amp;lt;/LinearGradientBrush&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Border.Background&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Border.Effect&amp;gt;
&amp;nbsp; &amp;lt;DropShadowEffect ShadowDepth="10"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BlurRadius="14"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Direction="300" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Border.Effect&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Margin="7"&amp;gt;
&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Pole: "
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreground="Black" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [OBJECTID]}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FontWeight="Bold"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreground="Black" /&amp;gt;
&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="Company: "
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreground="Black" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [COMPANY]}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FontWeight="Bold"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreground="Black" /&amp;gt;
&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="CU: "
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreground="Black" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [CU]}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FontWeight="Bold"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreground="Black" /&amp;gt;
&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
 &amp;lt;/Border&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.MapTip&amp;gt;
&amp;lt;/esri:FeatureLayer&amp;gt;
&amp;lt;/esri:Map&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:TemplatePicker x:Name="MyTemplatePicker"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continuous="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loaded="MyTemplatePicker_Loaded"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map="{Binding ElementName=MapControl}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShowAttributesOnAdd="True" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private void MyTemplatePicker_Loaded(object sender, RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; string[] myLayerIDs = { "Poles" };
&amp;nbsp;&amp;nbsp;&amp;nbsp; MyTemplatePicker.LayerIDs = myLayerIDs;
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396133#M10238</guid>
      <dc:creator>RickThiel</dc:creator>
      <dc:date>2021-12-11T18:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: TemplatePicker adds two features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396134#M10239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rick, Thank you for reporting this. It was very difficult to reproduce the issue with the sampleservers until we force to introduce a delay in code. We are trying to get this bug fixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have AutoSave=True (default), please try AutoSave=False so that edit to the same feature are submitted to the server at the same time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 16:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396134#M10239</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-05-09T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: TemplatePicker adds two features</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396135#M10240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&amp;nbsp; Thanks.&amp;nbsp; Turning the AutoSave="False" on the feature layer seemed to fix the problem.&amp;nbsp; We will go with that.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I do have another question.&amp;nbsp; I am a little new to the GIS area in our company... can you tell me how I could begin troubleshooting why I am experiencing a 17 second delay on the updates to our feature layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&amp;nbsp; --Rick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 13:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/templatepicker-adds-two-features/m-p/396135#M10240</guid>
      <dc:creator>RickThiel</dc:creator>
      <dc:date>2011-05-10T13:37:31Z</dc:date>
    </item>
  </channel>
</rss>

