<?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: Table Data Field - Add URL if value like 'INC*' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-Data-Field-Add-URL-if-value-like-INC/m-p/2105503#M1224384</link>
    <description>&lt;P&gt;Hii,&lt;/P&gt;
&lt;P&gt;You can correctly generate the URL without special character replacements, you can use the &lt;FONT color="#000000"&gt;&lt;CODE&gt;HYPERLINK&lt;/CODE&gt;&lt;/FONT&gt; function along with the &lt;CODE&gt;SUBSTITUTE&lt;/CODE&gt; function to handle special characters. Here's the corrected syntax:&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=IF([DWH SNOW INC] LIKE "INC*", HYPERLINK("https://servicemanagement.abc.net/nav_to.do?uri=task.do?sysparm_query=number=" &amp;amp; SUBSTITUTE([DWH SNOW INC], "'", ""), [DWH SNOW INC]))
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;In this formula, the &lt;CODE&gt;SUBSTITUTE&lt;/CODE&gt; function replaces any single quotes with an empty string to prevent special character issues in the URL. The &lt;CODE&gt;HYPERLINK&lt;/CODE&gt; function then creates the link using the modified URL and displays the &lt;CODE&gt;[DWH SNOW INC]&lt;/CODE&gt; value as the link text.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 11:44:27 GMT</pubDate>
    <dc:creator>Andrewmiah</dc:creator>
    <dc:date>2023-08-14T11:44:27Z</dc:date>
    <item>
      <title>Table Data Field - Add URL if value like 'INC*'</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Data-Field-Add-URL-if-value-like-INC/m-p/2105058#M1224379</link>
      <description>&lt;P&gt;Hi Folks&lt;/P&gt;
&lt;P&gt;In my table I am trying to set the Link URL to create a link to our ticketing system if the value in field is LIKE INC&lt;/P&gt;
&lt;P&gt;This is the syntax:&lt;/P&gt;
&lt;P&gt;=if([DWH SNOW INC] LIKE 'INC*','&lt;A href="https://servicemanagement.abc.net/nav_to.do?uri=task.do?sysparm_query=number=" target="_blank"&gt;https://servicemanagement.abc.net/nav_to.do?uri=task.do?sysparm_query=number=&lt;/A&gt; &amp;amp;' &amp;amp; ([DWH SNOW INC]))&lt;/P&gt;
&lt;P&gt;It is working partially, in that the URL is created only if INC is present, but the URL formed has incorrect syntax - the special characters are being replaced:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://servicemanagement.abc.net/nav_to.do?uri=task.do" target="_blank"&gt;https://servicemanagement.abc.net/nav_to.do?uri=task.do&lt;/A&gt;&lt;FONT color="#FF0000"&gt;%3F&lt;/FONT&gt;sysparm_query&lt;FONT color="#FF0000"&gt;%3D&lt;/FONT&gt;number&lt;FONT color="#FF0000"&gt;%3D%20&lt;/FONT&gt;' &amp;amp; INC012345678&lt;/P&gt;
&lt;P&gt;It should be this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://servicemanagement.abc.net/nav_to.do" target="_blank"&gt;https://servicemanagement.abc.net/nav_to.do&lt;/A&gt;&lt;FONT color="#FF0000"&gt;?&lt;/FONT&gt;uri=task.do&lt;FONT color="#FF0000"&gt;?&lt;/FONT&gt;sysparm_query&lt;FONT color="#FF0000"&gt;=&lt;/FONT&gt;number&lt;FONT color="#FF0000"&gt;= &amp;amp;&lt;/FONT&gt;INC012345678&lt;/P&gt;
&lt;P&gt;How can i trap out the special characters?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Nigel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2023 09:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Data-Field-Add-URL-if-value-like-INC/m-p/2105058#M1224379</guid>
      <dc:creator>nigelapthome</dc:creator>
      <dc:date>2023-08-12T09:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table Data Field - Add URL if value like 'INC*'</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Data-Field-Add-URL-if-value-like-INC/m-p/2105503#M1224384</link>
      <description>&lt;P&gt;Hii,&lt;/P&gt;
&lt;P&gt;You can correctly generate the URL without special character replacements, you can use the &lt;FONT color="#000000"&gt;&lt;CODE&gt;HYPERLINK&lt;/CODE&gt;&lt;/FONT&gt; function along with the &lt;CODE&gt;SUBSTITUTE&lt;/CODE&gt; function to handle special characters. Here's the corrected syntax:&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=IF([DWH SNOW INC] LIKE "INC*", HYPERLINK("https://servicemanagement.abc.net/nav_to.do?uri=task.do?sysparm_query=number=" &amp;amp; SUBSTITUTE([DWH SNOW INC], "'", ""), [DWH SNOW INC]))
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;In this formula, the &lt;CODE&gt;SUBSTITUTE&lt;/CODE&gt; function replaces any single quotes with an empty string to prevent special character issues in the URL. The &lt;CODE&gt;HYPERLINK&lt;/CODE&gt; function then creates the link using the modified URL and displays the &lt;CODE&gt;[DWH SNOW INC]&lt;/CODE&gt; value as the link text.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 11:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Data-Field-Add-URL-if-value-like-INC/m-p/2105503#M1224384</guid>
      <dc:creator>Andrewmiah</dc:creator>
      <dc:date>2023-08-14T11:44:27Z</dc:date>
    </item>
  </channel>
</rss>

