<?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>idea EditOperation.Create should support group templates in Data Management Ideas</title>
    <link>https://community.esri.com/t5/data-management-ideas/editoperation-create-should-support-group/idi-p/1559874</link>
    <description>&lt;P&gt;I'm working on an ArcGIS Pro AddIn (in the context of UN). I'm getting null values while inspecting the GlobalID and ObjectID of a RowToken instance (returned from a Create method call on an EditOperation). The RowToken itself is instantiated, but its properties are null. This is an issue because the developer has no options on how to hold a reference for a network element that will be saved (EditOp executed) later in the process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only happens when dealing with Group Templates, as the same strategy and source code work for regular templates (sample source coded attached to this message).&lt;/P&gt;&lt;P&gt;I understand that today, this may happen due to the nature of a Group Template—it returns multiple features instead of one. So, which RowToken would be returned?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two suggestions for handling this situation. (I'm considering only dealing with FeatureTemplates, and I know that EditOperation.Create deals with a much broader spectrum of entities - please consider the context):&lt;/P&gt;&lt;P&gt;- (non-breaking method signature - this is more of a workaround since it returns partial information about what was created): The Create method of the EditOperation class returns the GlobalID and ObjectID of the Primary builder entity when invoked over a Group Template&lt;BR /&gt;- (breaking method signature - this is what I think works semantically correct for regular and Group Templates): The Create method of the EditOperation class returns an enumerable RowTokens instead of a concrete RowToken instance. For regular feature templates, this enumerable will contain a single RowToken instance, while for GroupTemplates, it may contain n RowToken instances, where n equals the number of elements created in the GroupTemplate.&lt;BR /&gt;&lt;BR /&gt;The source code to reproduce the issue is attached to this message for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 19:53:44 GMT</pubDate>
    <dc:creator>robertopepato_bizpoke</dc:creator>
    <dc:date>2024-11-18T19:53:44Z</dc:date>
    <item>
      <title>EditOperation.Create should support group templates</title>
      <link>https://community.esri.com/t5/data-management-ideas/editoperation-create-should-support-group/idi-p/1559874</link>
      <description>&lt;P&gt;I'm working on an ArcGIS Pro AddIn (in the context of UN). I'm getting null values while inspecting the GlobalID and ObjectID of a RowToken instance (returned from a Create method call on an EditOperation). The RowToken itself is instantiated, but its properties are null. This is an issue because the developer has no options on how to hold a reference for a network element that will be saved (EditOp executed) later in the process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only happens when dealing with Group Templates, as the same strategy and source code work for regular templates (sample source coded attached to this message).&lt;/P&gt;&lt;P&gt;I understand that today, this may happen due to the nature of a Group Template—it returns multiple features instead of one. So, which RowToken would be returned?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two suggestions for handling this situation. (I'm considering only dealing with FeatureTemplates, and I know that EditOperation.Create deals with a much broader spectrum of entities - please consider the context):&lt;/P&gt;&lt;P&gt;- (non-breaking method signature - this is more of a workaround since it returns partial information about what was created): The Create method of the EditOperation class returns the GlobalID and ObjectID of the Primary builder entity when invoked over a Group Template&lt;BR /&gt;- (breaking method signature - this is what I think works semantically correct for regular and Group Templates): The Create method of the EditOperation class returns an enumerable RowTokens instead of a concrete RowToken instance. For regular feature templates, this enumerable will contain a single RowToken instance, while for GroupTemplates, it may contain n RowToken instances, where n equals the number of elements created in the GroupTemplate.&lt;BR /&gt;&lt;BR /&gt;The source code to reproduce the issue is attached to this message for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 19:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-ideas/editoperation-create-should-support-group/idi-p/1559874</guid>
      <dc:creator>robertopepato_bizpoke</dc:creator>
      <dc:date>2024-11-18T19:53:44Z</dc:date>
    </item>
  </channel>
</rss>

