<?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 SQLExpression Arcpy Parameter Dependency in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sqlexpression-arcpy-parameter-dependency/m-p/329755#M25654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have a problem on creating an&amp;nbsp; ArcPythonToolbox&amp;nbsp; containing SQL Expression parameter dependency with a TableView parameter (multivalues). I want the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;SQL Expression parameter able to retrieve the table names and fields of the input TableView&amp;nbsp;like the Make Query Table tool (a built-in ArcToolbox) but it only retrieve the field names.&lt;BR /&gt;Expectation format: MyTable.OBJECTID, MyTable2.NAME&lt;BR /&gt;&lt;EM&gt;Using ArcGISPro&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; My ArcPythonToolbox&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/438010_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Make Query Table (Expectation)&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/438035_pastedImage_5.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This is how I bind them.&lt;/EM&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def getParameterInfo(self):
 """Define parameter definitions"""
 inputData = arcpy.Parameter(
 displayName="Input Data",
 name="in_features",
 datatype="&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;GPTableView&lt;/SPAN&gt;",
 direction="Input",
 parameterType="Required",
 multiValue=True)

 sqlExpression = arcpy.Parameter(
 displayName="Expression",
 name="in_expression",
 datatype="GPSQLExpression",
 parameterType="Optional",
 direction="Input")
 sqlExpression.parameterDependencies = [inputData.name]&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:20:49 GMT</pubDate>
    <dc:creator>JakkapanJiranthorn</dc:creator>
    <dc:date>2021-12-12T16:20:49Z</dc:date>
    <item>
      <title>SQLExpression Arcpy Parameter Dependency</title>
      <link>https://community.esri.com/t5/python-questions/sqlexpression-arcpy-parameter-dependency/m-p/329755#M25654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I have a problem on creating an&amp;nbsp; ArcPythonToolbox&amp;nbsp; containing SQL Expression parameter dependency with a TableView parameter (multivalues). I want the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;SQL Expression parameter able to retrieve the table names and fields of the input TableView&amp;nbsp;like the Make Query Table tool (a built-in ArcToolbox) but it only retrieve the field names.&lt;BR /&gt;Expectation format: MyTable.OBJECTID, MyTable2.NAME&lt;BR /&gt;&lt;EM&gt;Using ArcGISPro&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; My ArcPythonToolbox&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/438010_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Make Query Table (Expectation)&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/438035_pastedImage_5.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This is how I bind them.&lt;/EM&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def getParameterInfo(self):
 """Define parameter definitions"""
 inputData = arcpy.Parameter(
 displayName="Input Data",
 name="in_features",
 datatype="&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;GPTableView&lt;/SPAN&gt;",
 direction="Input",
 parameterType="Required",
 multiValue=True)

 sqlExpression = arcpy.Parameter(
 displayName="Expression",
 name="in_expression",
 datatype="GPSQLExpression",
 parameterType="Optional",
 direction="Input")
 sqlExpression.parameterDependencies = [inputData.name]&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sqlexpression-arcpy-parameter-dependency/m-p/329755#M25654</guid>
      <dc:creator>JakkapanJiranthorn</dc:creator>
      <dc:date>2021-12-12T16:20:49Z</dc:date>
    </item>
  </channel>
</rss>

