<?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: Arcgis pro SDK 2.9.x Order RowChangedEvent in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253430#M9377</link>
    <description>&lt;P&gt;as all features have the same edit being applied (a "move") i suspect that it has more to do with the order in which the features are ordered in the selection set. So the first feature in the selection set is probably moved first, the second moved second, etc. I dont think the order in which u register for events has any bearing on the order in which u receive the events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 17:21:37 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2023-01-31T17:21:37Z</dc:date>
    <item>
      <title>Arcgis pro SDK 2.9.x Order RowChangedEvent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253235#M9376</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hello everybody, is it possible to understand in which order the editing events are triggered on a group of edited Featureclasses \ Table ? In this example I have 4 featureclasses called A,B,C and Z. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QuintoGIS_0-1675162752208.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61691iA1BEFD2A9ABD4E53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QuintoGIS_0-1675162752208.png" alt="QuintoGIS_0-1675162752208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;To register the change events I used the following code (taking the layers in toc order).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;   protected override void OnClick()
        {

             QueuedTask.Run(() =&amp;gt;
             {
                 //Listen for row events on a layer
                 IEnumerable&amp;lt;FeatureLayer&amp;gt; layers = MapView.Active.Map.GetLayersAsFlattenedList().Where(layer =&amp;gt; layer is FeatureLayer).Select(x=&amp;gt;(FeatureLayer)x);


                 if (lst.Count == 0)
                 {

                     foreach (var fl in layers)
                     {
                         try
                         {

                             var fc = fl.GetFeatureClass();
                             //These events are fired once ~per feature~,
                             //per table
                             SubscriptionToken rowCreateToken = RowChangedEvent.Subscribe(OnRowChanged, fc);
                             lst.Add(rowCreateToken);


                         }
                         catch (Exception e)
                         {

                         }

                     }

                 }
                 else
                 {
                     lst.ForEach(x =&amp;gt; RowChangedEvent.Unsubscribe(x));
                     lst.Clear();
                 }

                 
                             

                 //subscribe to row events
                 
                // var rowDeleteToken = RowDeletedEvent.Subscribe(OnRowDeleted, layerTable);
             });
           

        }

        private Guid _currentRowChangedGuid = Guid.Empty;
        private void OnRowChanged(RowChangedEventArgs args)
        {
            try
            {
                Debug.WriteLine(args.Row.GetTable().GetName().Split('.')[1]);
                return;
			}catch(Exception e){
				return;
			}
		}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I take a group of features belonging to A,B,C and Z and move them (using the move tool). The return order of the modified features does not follow the registration, but it would appear to be a random order ( in this case Z,C,B,A). How is the return order of these events defined?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 11:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253235#M9376</guid>
      <dc:creator>QuintoGIS</dc:creator>
      <dc:date>2023-01-31T11:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis pro SDK 2.9.x Order RowChangedEvent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253430#M9377</link>
      <description>&lt;P&gt;as all features have the same edit being applied (a "move") i suspect that it has more to do with the order in which the features are ordered in the selection set. So the first feature in the selection set is probably moved first, the second moved second, etc. I dont think the order in which u register for events has any bearing on the order in which u receive the events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 17:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253430#M9377</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-01-31T17:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis pro SDK 2.9.x Order RowChangedEvent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253722#M9378</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;hi charles,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I did several tests and I don't think that the selection order affects the return order of the elements. In the tests I selected in the order: z,c,a,b and the answer order was: z,c,b,a. Another try with c,a,z,b -&amp;gt; z,c,b,a. I can not understand...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 10:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253722#M9378</guid>
      <dc:creator>QuintoGIS</dc:creator>
      <dc:date>2023-02-01T10:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis pro SDK 2.9.x Order RowChangedEvent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253865#M9379</link>
      <description>&lt;P&gt;the order in the selection set is controlled by object id I believe and not the order in which features are selected.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253865#M9379</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-02-01T15:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis pro SDK 2.9.x Order RowChangedEvent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253913#M9380</link>
      <description>&lt;P&gt;I tried with objectid. The 4 Featureclasses have 5 objects in total&lt;/P&gt;&lt;P&gt;A -&amp;gt; objectid 104&lt;BR /&gt;B -&amp;gt; objectid 121&lt;BR /&gt;C -&amp;gt; objectid 103&lt;BR /&gt;Z -&amp;gt; objectid 61,200&lt;/P&gt;&lt;P&gt;When I move 104,121,103 and 61 the order is this : Z,C,B,A&lt;/P&gt;&lt;P&gt;The same with : 104,121,103 and 200&lt;/P&gt;&lt;P&gt;I'm even more confused &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:20:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1253913#M9380</guid>
      <dc:creator>QuintoGIS</dc:creator>
      <dc:date>2023-02-01T16:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis pro SDK 2.9.x Order RowChangedEvent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1254773#M9387</link>
      <description>&lt;P&gt;Any other idea?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 09:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-9-x-order-rowchangedevent/m-p/1254773#M9387</guid>
      <dc:creator>QuintoGIS</dc:creator>
      <dc:date>2023-02-03T09:37:41Z</dc:date>
    </item>
  </channel>
</rss>

