<?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 Hard code a Definition Query clause when using Tasks in Pro in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idi-p/971527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently there is no way to set up a definition query as a task step in ArcGIS Pro with a predefined/hard coded&amp;nbsp;SQL clause or even pass the SQL clause as a parameter. It would be extremely helpful when using Tasks in ArcGIS Pro if there was a way to set up a Feature Layer Definition Query as a task step and&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;hard code the SQL clause so it is passed into the into the Definition Query automatically - minimizing the chance for error on the users part. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ability to set up Task has been very helpful for our workflow, especially when it comes to our "less knowledgeable" GIS users who aren't completely familiar with how certain GIS tools work. &amp;nbsp;However, relying on them to correctly enter the SQL code again and again when running a Task has opened up opportunities for them to incorrectly set up the SQL clause due to fat-finger or syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be beneficial to either "hard code" the SQL clause within the task step setup in the tool OR pass the SQL statement as a parameter. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcgispro‌ arcgis pro 2‌ task designer‌ tasks‌&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2017 13:04:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-08-18T13:04:14Z</dc:date>
    <item>
      <title>Hard code a Definition Query clause when using Tasks in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idi-p/971527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently there is no way to set up a definition query as a task step in ArcGIS Pro with a predefined/hard coded&amp;nbsp;SQL clause or even pass the SQL clause as a parameter. It would be extremely helpful when using Tasks in ArcGIS Pro if there was a way to set up a Feature Layer Definition Query as a task step and&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;hard code the SQL clause so it is passed into the into the Definition Query automatically - minimizing the chance for error on the users part. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ability to set up Task has been very helpful for our workflow, especially when it comes to our "less knowledgeable" GIS users who aren't completely familiar with how certain GIS tools work. &amp;nbsp;However, relying on them to correctly enter the SQL code again and again when running a Task has opened up opportunities for them to incorrectly set up the SQL clause due to fat-finger or syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be beneficial to either "hard code" the SQL clause within the task step setup in the tool OR pass the SQL statement as a parameter. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcgispro‌ arcgis pro 2‌ task designer‌ tasks‌&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 13:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idi-p/971527</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-08-18T13:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code a Definition Query clause when using Tasks in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/971528#M9338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Noelle,&lt;/P&gt;&lt;P&gt;Thanks for the wonderful idea.&lt;/P&gt;&lt;P&gt;Would the definition query be applied to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A single layer&lt;/LI&gt;&lt;LI&gt;All layers&lt;/LI&gt;&lt;LI&gt;Subset of layers&lt;/LI&gt;&lt;LI&gt;All of the above&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 14:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/971528#M9338</guid>
      <dc:creator>AmirBar-Maor</dc:creator>
      <dc:date>2017-12-07T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code a Definition Query clause when using Tasks in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/971529#M9339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amir:&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I think it would be helpful just to have the definition query available for a single feature layer.&amp;nbsp; Though I do see the benefits of your other options as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for considering!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:58:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/971529#M9339</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-01-31T17:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code a Definition Query clause when using Tasks in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/971530#M9340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with this idea 100%. I am currently trying to model QC workflows in Tasks but all of these workflows start with filtering datasets via definition queries and this is not something I can do in Tasks. I would be able to use Tasks much more in my work if I could set and/or clear the definition query as part of a command in a step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working around this by creating a multi-value choice list (Python script tool) and inserting that into a GP model. The Python script takes the user input from the multi-value choice list, generates the definition query syntax, and applies it to the layers specified also within the Python code. I am using Python to do things that I think should be options in Tasks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/971530#M9340</guid>
      <dc:creator>MikeLachance</dc:creator>
      <dc:date>2018-03-15T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code a Definition Query clause when using Tasks in Pro - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/1019591#M14984</link>
      <description />
      <pubDate>Mon, 25 Jan 2021 12:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/1019591#M14984</guid>
      <dc:creator>AmirBar-Maor</dc:creator>
      <dc:date>2021-01-25T12:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code a Definition Query clause when using Tasks in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/1370614#M28042</link>
      <description>&lt;P&gt;Very excited to see this has been added to the product plan. ArcGIS Tasks are a really great concept for documenting repetitive workflows but they're only helpful when they can be incorporated with tools and workflows that are used frequently. Definition queries being one of them - pretty ubiquitous in almost every workflow! This will be very useful!&lt;/P&gt;&lt;P&gt;Any update on the timeline for this functionality being added?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3062"&gt;@AmirBar-Maor&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 18:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/1370614#M28042</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2024-01-16T18:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hard code a Definition Query clause when using Tasks in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/1370877#M28050</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/232739"&gt;@Katie_Clark&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I cannot provide you with a timeline at this time. It will not be implemented in the 'near-term' (next 1-2 releases.&lt;/P&gt;&lt;P&gt;As a work around you can use a small python script to manipulate the definition query instead. A task step can call the script tool.&lt;/P&gt;&lt;P&gt;Here is an example&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-questions/arcgis-pro-modifying-layer-definition-query-via/td-p/258922" target="_blank"&gt;https://community.esri.com/t5/python-questions/arcgis-pro-modifying-layer-definition-query-via/td-p/258922&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 09:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/hard-code-a-definition-query-clause-when-using/idc-p/1370877#M28050</guid>
      <dc:creator>AmirBar-Maor</dc:creator>
      <dc:date>2024-01-17T09:40:58Z</dc:date>
    </item>
  </channel>
</rss>

