<?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: How to &amp;quot;Define parameters in a query layer&amp;quot;? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504127#M71051</link>
    <description>&lt;P&gt;Ohh.&lt;/P&gt;&lt;P&gt;Give this a shot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-query-layer.htm" target="_blank" rel="noopener"&gt;Make Query Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 13:30:56 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2024-07-11T13:30:56Z</dc:date>
    <item>
      <title>How to "Define parameters in a query layer"?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504086#M71046</link>
      <description>&lt;P&gt;I'd like to incorporate this manual workflow into my dockpane,&amp;nbsp; but I don't find any useful documentation or samples. Does anyone know if it is possible and if yes, how it can be done?&lt;/P&gt;&lt;P&gt;my manual workflow:&lt;/P&gt;&lt;P&gt;I open an enterprise geodatabase feature class in a map in ArcGIS Pro. Then I open layer properties and go to source. there is the field "Query" (not definition query!) containing something like this "select attribute 1, attribute 2, ..., attribute n FROM layername".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nadja_swiss_parks_0-1720701997695.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109460iC4905503BA65980E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nadja_swiss_parks_0-1720701997695.png" alt="nadja_swiss_parks_0-1720701997695.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then click on the pen on the right hand side and modify the query to "select * from layername".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this documentation:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/define-parameters-in-a-query-layer.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/define-parameters-in-a-query-...&lt;/A&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;how can i add the layer such that its query says "select * from layername"? any help is greatly appreciated.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jul 2024 12:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504086#M71046</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2024-07-11T12:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to "Define parameters in a query layer"?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504094#M71047</link>
      <description>&lt;P&gt;It sounds like you're asking how to make a Query Layer from Scratch?&lt;/P&gt;&lt;P&gt;If that's the case:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Make sure an enterprise geodatabase connection is in your project's databases folder&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_1-1720702634806.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109463i3B06014DF4C3A7DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_1-1720702634806.png" alt="AlfredBaldenweck_1-1720702634806.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;On the Map tab, hit the "Add Data" drop down and select "Query Layer"&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_2-1720702695516.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109464i46EE19C5C06DA233/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_2-1720702695516.png" alt="AlfredBaldenweck_2-1720702695516.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Choose your database connection&lt;/LI&gt;&lt;LI&gt;Name your layer&lt;/LI&gt;&lt;LI&gt;Write your Query&lt;/LI&gt;&lt;LI&gt;Press Validate&lt;/LI&gt;&lt;LI&gt;Hit Next&lt;/LI&gt;&lt;LI&gt;Choose the unique ID&lt;/LI&gt;&lt;LI&gt;Hit Finish&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/what-is-a-query-layer-.htm" target="_blank" rel="noopener"&gt;Query layers—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/creating-a-query-layer.htm" target="_blank" rel="noopener"&gt;Create a query layer for data in a relational database—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 13:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504094#M71047</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-07-11T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to "Define parameters in a query layer"?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504122#M71050</link>
      <description>&lt;P&gt;thanks for your reply, but I'd like to do it using a arcpy-script. is that possible?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 13:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504122#M71050</guid>
      <dc:creator>nadja</dc:creator>
      <dc:date>2024-07-11T13:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to "Define parameters in a query layer"?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504127#M71051</link>
      <description>&lt;P&gt;Ohh.&lt;/P&gt;&lt;P&gt;Give this a shot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-query-layer.htm" target="_blank" rel="noopener"&gt;Make Query Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 13:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-quot-define-parameters-in-a-query-layer/m-p/1504127#M71051</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-07-11T13:30:56Z</dc:date>
    </item>
  </channel>
</rss>

