<?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 Dashboard Table Advanced Formatting, Conditionally show URL in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-table-advanced-formatting-conditionally/m-p/1564876#M10544</link>
    <description>&lt;P&gt;Winter greetings,&lt;/P&gt;&lt;P&gt;I've got a Dashboard Table with 3 columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;column 1: text of cell&lt;/LI&gt;&lt;LI&gt;columns 2 and 3: I've successfully used advanced formatting to display a link to the cell's stored URL text string.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However... there are a couple of cells in columns 2 and 3 that are null/empty and will remain that way. I'd like for those cells not to display a clickable link that goes nowhere, and instead to simply show up as empty. I can't figure out where in the code to put the if(IsEmpty()) variables. Column 1 I need to remain as-is. Below is my working code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;return {
  cells: {
    TreatyImp: {
      displayText : $datapoint.TreatyImp,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },
		
    Topo: {
      displayText : `&amp;lt;a href="${$datapoint["Topo"]}" target="blank"&amp;gt;Download Topo Map&amp;lt;/a&amp;gt;`,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },
		
    Aerial: {
      displayText : `&amp;lt;a href="${$datapoint["Aerial"]}" target="blank"&amp;gt;Download Aerial Map&amp;lt;/a&amp;gt;`,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },	
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers in the right direction would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-r&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 20:53:49 GMT</pubDate>
    <dc:creator>rbd</dc:creator>
    <dc:date>2024-12-04T20:53:49Z</dc:date>
    <item>
      <title>Dashboard Table Advanced Formatting, Conditionally show URL</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-table-advanced-formatting-conditionally/m-p/1564876#M10544</link>
      <description>&lt;P&gt;Winter greetings,&lt;/P&gt;&lt;P&gt;I've got a Dashboard Table with 3 columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;column 1: text of cell&lt;/LI&gt;&lt;LI&gt;columns 2 and 3: I've successfully used advanced formatting to display a link to the cell's stored URL text string.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However... there are a couple of cells in columns 2 and 3 that are null/empty and will remain that way. I'd like for those cells not to display a clickable link that goes nowhere, and instead to simply show up as empty. I can't figure out where in the code to put the if(IsEmpty()) variables. Column 1 I need to remain as-is. Below is my working code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;return {
  cells: {
    TreatyImp: {
      displayText : $datapoint.TreatyImp,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },
		
    Topo: {
      displayText : `&amp;lt;a href="${$datapoint["Topo"]}" target="blank"&amp;gt;Download Topo Map&amp;lt;/a&amp;gt;`,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },
		
    Aerial: {
      displayText : `&amp;lt;a href="${$datapoint["Aerial"]}" target="blank"&amp;gt;Download Aerial Map&amp;lt;/a&amp;gt;`,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },	
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers in the right direction would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-r&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 20:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-table-advanced-formatting-conditionally/m-p/1564876#M10544</guid>
      <dc:creator>rbd</dc:creator>
      <dc:date>2024-12-04T20:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Table Advanced Formatting, Conditionally show URL</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-table-advanced-formatting-conditionally/m-p/1564921#M10545</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var topoText = When(IsEmpty($datapoint["Topo"]), '', `&amp;lt;a href="${$datapoint["Topo"]}" target="blank"&amp;gt;Download Topo Map&amp;lt;/a&amp;gt;`)
var aerialText = When(IsEmpty($datapoint["Aerial"]), '', `&amp;lt;a href="${$datapoint["Aerial"]}" target="blank"&amp;gt;Download Aerial Map&amp;lt;/a&amp;gt;`)

return {
  cells: {
    TreatyImp: {
      displayText : $datapoint.TreatyImp,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },
		
    Topo: {
      displayText : topoText,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },
		
    Aerial: {
      displayText : aerialText,
      textColor: '',
      backgroundColor: '',
      textAlign: 'left',
      iconName: '',
      iconAlign: '',
      iconColor: '',
      iconOutlineColor: ''
    },	
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Dec 2024 21:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-table-advanced-formatting-conditionally/m-p/1564921#M10545</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-12-04T21:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Table Advanced Formatting, Conditionally show URL</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-table-advanced-formatting-conditionally/m-p/1564940#M10546</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;you're amazing! Thanks for the fix. BTW, I've been chasing rabbitholes on these boards and have learned a lot from your posts and responses to others!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 22:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/dashboard-table-advanced-formatting-conditionally/m-p/1564940#M10546</guid>
      <dc:creator>rbd</dc:creator>
      <dc:date>2024-12-04T22:47:29Z</dc:date>
    </item>
  </channel>
</rss>

