<?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 Dynamic text value with SQL Expression return first record in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1249057#M64336</link>
    <description>&lt;P&gt;Experimenting a bit with dynamic text and table attributes which is listed as 'value' in the dynamic text dialog.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you can use a few options that would limit the resulting return for 'All records', 'Visible records', and 'Custom Query'. The custom query expression uses SQL and would have a default of something like:&amp;nbsp;sql="OBJECTID = 1". You can use the SQL expression builder but unfortunately it does not recognize table names which is unfortunate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A typical dynamic text may look like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;lt;dyn type="table" property="value" mapFrame="Main Map Frame" mapMemberUri="CIMPATH=location_map/forest_types.json" sql="OBJECTID = 1" arcade="&amp;amp;apos;CLIENT: &amp;amp;apos;+$feature.CLIENT" delimiter=" "/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I'd like to be able to use an SQL statement to return only the first record but not having any luck.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;SELECT FIRST(column_name) FROM table_name;&lt;/LI-CODE&gt;&lt;P&gt;Is any of this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 14:44:57 GMT</pubDate>
    <dc:creator>ZacharyHart</dc:creator>
    <dc:date>2023-01-18T14:44:57Z</dc:date>
    <item>
      <title>Dynamic text value with SQL Expression return first record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1249057#M64336</link>
      <description>&lt;P&gt;Experimenting a bit with dynamic text and table attributes which is listed as 'value' in the dynamic text dialog.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you can use a few options that would limit the resulting return for 'All records', 'Visible records', and 'Custom Query'. The custom query expression uses SQL and would have a default of something like:&amp;nbsp;sql="OBJECTID = 1". You can use the SQL expression builder but unfortunately it does not recognize table names which is unfortunate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A typical dynamic text may look like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;lt;dyn type="table" property="value" mapFrame="Main Map Frame" mapMemberUri="CIMPATH=location_map/forest_types.json" sql="OBJECTID = 1" arcade="&amp;amp;apos;CLIENT: &amp;amp;apos;+$feature.CLIENT" delimiter=" "/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I'd like to be able to use an SQL statement to return only the first record but not having any luck.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;SELECT FIRST(column_name) FROM table_name;&lt;/LI-CODE&gt;&lt;P&gt;Is any of this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 14:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1249057#M64336</guid>
      <dc:creator>ZacharyHart</dc:creator>
      <dc:date>2023-01-18T14:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text value with SQL Expression return first record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1337461#M73957</link>
      <description>&lt;P&gt;did you ever figure this out? I would really like to do this as well!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 19:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1337461#M73957</guid>
      <dc:creator>KariBuckvold</dc:creator>
      <dc:date>2023-10-12T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text value with SQL Expression return first record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1337465#M73959</link>
      <description>&lt;P&gt;&lt;EM&gt;Supposedly &lt;/EM&gt;the Arcade Distinct function will be working in the 3.2 release...(several years after it was first shown in the documentation).&lt;/P&gt;&lt;P&gt;You can read comments from others &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcade-function-to-show-unique-values-remove/idi-p/1028336/page/2#comments" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 19:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1337465#M73959</guid>
      <dc:creator>ZacharyHart</dc:creator>
      <dc:date>2023-10-12T19:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic text value with SQL Expression return first record</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1337502#M73965</link>
      <description>&lt;P&gt;thanks for the reply, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/194227"&gt;@ZacharyHart&lt;/a&gt;&amp;nbsp;,too bad we can't use python and use 'set' in the meantime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 20:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dynamic-text-value-with-sql-expression-return/m-p/1337502#M73965</guid>
      <dc:creator>KariBuckvold</dc:creator>
      <dc:date>2023-10-12T20:54:31Z</dc:date>
    </item>
  </channel>
</rss>

