<?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: StandaloneTable edit in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1313029#M10107</link>
    <description>&lt;P&gt;Yes, that is simpler.&amp;nbsp; Thanks for your help with this!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 12:16:49 GMT</pubDate>
    <dc:creator>BrianBulla</dc:creator>
    <dc:date>2023-07-28T12:16:49Z</dc:date>
    <item>
      <title>StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312237#M10094</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to update a StandaloneTable through the SDK.&amp;nbsp; It is a .dbf file, in my map at the time of running the code.&amp;nbsp; I am using ArcGIS Pro 2.9.&lt;/P&gt;&lt;P&gt;I am getting the error on the row.Store() line.&amp;nbsp; I have tried to update my inspFile.Search(qf) line to inspFile.Search(qf,True), but then I get a "No Overload for method Search take 2 arguments" error.&amp;nbsp; Is this just a 2.9 issue??&amp;nbsp; If so, is there some other way to update the .dbf that would work in 2.9??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;StandaloneTable inspFile = map.GetStandaloneTablesAsFlattenedList().FirstOrDefault(tbl =&amp;gt; tbl.Name == GlobalVars.HydInspFile); 

QueryFilter qf = new QueryFilter();
qf.SubFields = "FACILITYID";
qf.WhereClause = "FACILITYID = '" + shpFacilityID + "'";

using (RowCursor rowCursor = inspFile.Search(qf))
{
       while (rowCursor.MoveNext())
       {
             using (var row = rowCursor.Current)
             {
                  row["FACILITYID"] = sdeFacilityID;
                  row.Store();
             }
       }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 19:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312237#M10094</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-07-26T19:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312422#M10099</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Standalone table has different Search method parameters than Table or FeatureClass.&lt;/P&gt;&lt;P&gt;More info here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.9/sdk/api-reference/index.html#topic12260.html" target="_self"&gt;https://pro.arcgis.com/en/pro-app/2.9/sdk/api-reference/index.html#topic12260.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What type of error do you get on row Store?&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/2.9/sdk/api-reference/topic7606.html#" target="_blank" rel="noopener"&gt;System.NotSupportedException&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/2.9/sdk/api-reference/topic7200.html" target="_blank" rel="noopener"&gt;GeodatabaseException&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;On ArcGIS Pro 3.1.2 your code works if Search section is included into&amp;nbsp;QueuedTask.Run.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 06:12:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312422#M10099</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-07-27T06:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312496#M10101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, it's all in a QueuedTask.Run.&lt;/P&gt;&lt;P&gt;The error I get is a GeodatabaseException.&lt;/P&gt;&lt;P&gt;So since at 2.9 the Search function doesn't really provide me a way to edit the rows, I guess that I just need to wait until we get 3.x pushed out to us by our IT department.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1690461217318.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76513i2569236B12A40706/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1690461217318.png" alt="BrianBulla_0-1690461217318.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 12:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312496#M10101</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-07-27T12:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312538#M10102</link>
      <description>&lt;P&gt;Maybe your dbf file is locked somewhere else?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312538#M10102</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-07-27T13:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312561#M10103</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No, the file is definitely not open by anything else.&amp;nbsp; Only being used in the Pro project.&lt;/P&gt;&lt;P&gt;So I'm trying this on a Pro 3.0 machine, but still getting an error on the row.Store() line.&amp;nbsp; See below.&amp;nbsp; So when you tried this on 3.1 did you make any code changes to what I have above??&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianBulla_0-1690469173943.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76523i9049F9F7BF66654A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianBulla_0-1690469173943.png" alt="BrianBulla_0-1690469173943.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 14:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312561#M10103</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-07-27T14:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312606#M10104</link>
      <description>&lt;P&gt;So I got this to work in 3.0.&amp;nbsp; I'll try it in 2.9....my guess is it will work there too.&lt;/P&gt;&lt;P&gt;Not sure why I can't edit that table using a RowCursor though.&lt;/P&gt;&lt;P&gt;Anyways.....&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;QueryFilter qf = new QueryFilter();
                qf.SubFields = "FACILITYID";
                qf.WhereClause = "FACILITYID = '" + shpFacilityID + "'";

                //Table table = inspFile.GetTable();
                var oids = new List&amp;lt;long&amp;gt;();

                using (var rowCursor = inspFile.Search(qf))
                {
                    while (rowCursor.MoveNext())
                    {
                        using (var row = rowCursor.Current)
                        {
                            oids.Add(row.GetObjectID());
                        }
                    }
                }

                var modifyTable = new ArcGIS.Desktop.Editing.EditOperation();
                modifyTable.Name = "Update HYDINSP Table";

                var tableInsp = new ArcGIS.Desktop.Editing.Attributes.Inspector();

                foreach (var oid in oids)
                {
                    tableInsp.Load(inspFile, oid);
                    tableInsp["FACILITYID"] = sdeFacilityID;
                    modifyTable.Modify(tableInsp);
                }

                modifyTable.Execute();&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Jul 2023 15:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312606#M10104</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-07-27T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312761#M10105</link>
      <description>&lt;P&gt;As I mentioned I have added&amp;nbsp;&lt;SPAN&gt;QueuedTask.Run and changed field name corresponding my dbf file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 18:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312761#M10105</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-07-27T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312765#M10106</link>
      <description>&lt;P&gt;Your code is very complicated. Try code below:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;QueryFilter qf = new QueryFilter();
                qf.SubFields = "FACILITYID";
                qf.WhereClause = "FACILITYID = '" + shpFacilityID + "'";

                var modifyTable = new ArcGIS.Desktop.Editing.EditOperation();
                modifyTable.Name = "Update HYDINSP Table";

                using (var rowCursor = inspFile.Search(qf))
                {
                    while (rowCursor.MoveNext())
                    {
                        using (var row = rowCursor.Current)
                        {
                            modifyTable.Modify(row, "FACILITYID", sdeFacilityID);
                        }
                    }
                }

                modifyTable.Execute();&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.9/sdk/api-reference/index.html#topic9533.html" target="_self"&gt;Modify method help&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made changes of your code directly in community editor and haven't tested it.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 19:01:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1312765#M10106</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-07-27T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: StandaloneTable edit</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1313029#M10107</link>
      <description>&lt;P&gt;Yes, that is simpler.&amp;nbsp; Thanks for your help with this!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 12:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/standalonetable-edit/m-p/1313029#M10107</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2023-07-28T12:16:49Z</dc:date>
    </item>
  </channel>
</rss>

