<?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 Use arcade expression in List element Title in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/use-arcade-expression-in-list-element-title/m-p/1323941#M8395</link>
    <description>&lt;P&gt;I have a dashboard in ArcGIS Online with a list element.&amp;nbsp; The list contains an attribute with currency.&amp;nbsp; I'd like the sum of the currency to be included in the List title.&amp;nbsp; Is this possible using arcade and Advanced Formatting?&lt;/P&gt;&lt;P&gt;In the Advanced formatting box I have this as a test:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
    sum: 'test'
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; In the Title box of the list element I have included this: {expression/sum}&lt;/P&gt;&lt;P&gt;However, the value of the sum attribute "test" does not show in the title, it shows "{expression/sum}".&amp;nbsp; In looking at the documentation it seems that this is possible.&lt;/P&gt;&lt;P&gt;I've also tried this but the attribute sum still won't display in the title:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
     dollars: '$0'
  },
  sum: 'test'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to reference an attribute from an Arcade expression in the Title of a list element?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 15:33:30 GMT</pubDate>
    <dc:creator>Jamie_Leitch_CNF</dc:creator>
    <dc:date>2023-08-30T15:33:30Z</dc:date>
    <item>
      <title>Use arcade expression in List element Title</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/use-arcade-expression-in-list-element-title/m-p/1323941#M8395</link>
      <description>&lt;P&gt;I have a dashboard in ArcGIS Online with a list element.&amp;nbsp; The list contains an attribute with currency.&amp;nbsp; I'd like the sum of the currency to be included in the List title.&amp;nbsp; Is this possible using arcade and Advanced Formatting?&lt;/P&gt;&lt;P&gt;In the Advanced formatting box I have this as a test:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
    sum: 'test'
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; In the Title box of the list element I have included this: {expression/sum}&lt;/P&gt;&lt;P&gt;However, the value of the sum attribute "test" does not show in the title, it shows "{expression/sum}".&amp;nbsp; In looking at the documentation it seems that this is possible.&lt;/P&gt;&lt;P&gt;I've also tried this but the attribute sum still won't display in the title:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;return {
  textColor: '',
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  attributes: {
     dollars: '$0'
  },
  sum: 'test'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to reference an attribute from an Arcade expression in the Title of a list element?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 15:33:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/use-arcade-expression-in-list-element-title/m-p/1323941#M8395</guid>
      <dc:creator>Jamie_Leitch_CNF</dc:creator>
      <dc:date>2023-08-30T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use arcade expression in List element Title</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/use-arcade-expression-in-list-element-title/m-p/1323951#M8396</link>
      <description>&lt;P&gt;Unfortunately it isn't possible, at least not this way. That arcade expression is evaluated &lt;EM&gt;per feature&lt;/EM&gt;, so there won't be access to the sums outside of an individual list item.&lt;/P&gt;&lt;P&gt;If you need to show a statistic like that, just use an &lt;STRONG&gt;indicator &lt;/STRONG&gt;widget and group it together with the list so it appears seamlessly above it.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 15:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/use-arcade-expression-in-list-element-title/m-p/1323951#M8396</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-08-30T15:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use arcade expression in List element Title</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/use-arcade-expression-in-list-element-title/m-p/1324064#M8397</link>
      <description>&lt;P&gt;Thank you, Josh, this is a good workaround.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 19:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/use-arcade-expression-in-list-element-title/m-p/1324064#M8397</guid>
      <dc:creator>Jamie_Leitch_CNF</dc:creator>
      <dc:date>2023-08-30T19:34:20Z</dc:date>
    </item>
  </channel>
</rss>

