<?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: Delete Field in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179803#M8224</link>
    <description>&lt;P&gt;Instead of just returning true, why not get a report on why it failed?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static async Task&amp;lt;bool&amp;gt; StartATask(string funcArc, object[] parame)
{
  var parameters = Geoprocessing.MakeValueArray(parame);
  var result = await Geoprocessing.ExecuteToolAsync(funcArc, parameters);
  if (result.IsFailed)
  {
    Geoprocessing.ShowMessageBox(result.Messages, "Content Header", GPMessageBoxStyle.Error);
  }
  return !result.IsFailed;
}&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 03 Jun 2022 14:17:12 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-06-03T14:17:12Z</dc:date>
    <item>
      <title>Delete Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1178923#M8208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to get the columns out, but it doesn't do anything at all, I tried it gradually, I tried them all at once but without any success. Can anyone advise me?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;FeatureLayer flRamyPresahu = mapView.Map.FindLayers(ramyPresahu).FirstOrDefault() as FeatureLayer;
 FeatureClass fcRamyPresahu = flRamyPresahu.GetTable() as FeatureClass;
 var minX = "ExtentMinX";
              var minY = "ExtentMinY";
              var maxX = "ExtentMaxX";
              var maxY = "ExtentMaxY";
object[] sloupce = {maxX,maxY,minX,minY};
              object[] seznamSloupcu = { fcRamyPresahu, sloupce };
              await StartATask("management.DeleteField", seznamSloupcu);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 10:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1178923#M8208</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-06-01T10:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1178971#M8210</link>
      <description>&lt;P&gt;If your FeatureClass is in a geodatabase (file, mobile, enterprise, or memory), you can use this snippet to remove a field&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#removing-fields-from-a-table" target="_blank"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#removing-fields-from-a-table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you can use this code to use the GeoProcessing tool to remove a field.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var args = Geoprocessing.MakeValueArray(fcRamyPresahu, sloupce);
IGPResult result = await Geoprocessing.ExecuteToolAsync("management.DeleteField", args, null, null, null, GPExecuteToolFlags.None); //the last parameter does not add the result to the map&lt;/LI-CODE&gt;&lt;P&gt;Read this &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing" target="_self"&gt;page&lt;/A&gt; on more information about using GeoProcessing tools&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1178971#M8210</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-06-01T13:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179327#M8215</link>
      <description>&lt;P&gt;It has m processed in its&lt;/P&gt;&lt;PRE&gt;StartATask&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But thank you for your time.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 04:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179327#M8215</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-06-02T04:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179442#M8217</link>
      <description>&lt;P&gt;What does your StartATask function look like?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 13:37:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179442#M8217</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-06-02T13:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179714#M8223</link>
      <description>&lt;LI-CODE lang="csharp"&gt;public static async Task&amp;lt;bool&amp;gt; StartATask(string funcArc, object[] parame)
        {
            var parameters = Geoprocessing.MakeValueArray(parame);
            await Geoprocessing.ExecuteToolAsync(funcArc, parameters);
            return true;
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Jun 2022 04:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179714#M8223</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-06-03T04:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Field</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179803#M8224</link>
      <description>&lt;P&gt;Instead of just returning true, why not get a report on why it failed?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static async Task&amp;lt;bool&amp;gt; StartATask(string funcArc, object[] parame)
{
  var parameters = Geoprocessing.MakeValueArray(parame);
  var result = await Geoprocessing.ExecuteToolAsync(funcArc, parameters);
  if (result.IsFailed)
  {
    Geoprocessing.ShowMessageBox(result.Messages, "Content Header", GPMessageBoxStyle.Error);
  }
  return !result.IsFailed;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Jun 2022 14:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/delete-field/m-p/1179803#M8224</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-06-03T14:17:12Z</dc:date>
    </item>
  </channel>
</rss>

