<?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 Open a link to new browser window in Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Open-a-link-to-new-browser-window-in-Straight-table/m-p/412482#M485229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created a straight table where one expression is a http-link (Representation = Link) to another solution. This is working nicely, but we would like to open this link to new browser window also with end users, who uses web client. In straight table we don't have a setting "open in same window" like we have in Action button. We have used a syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;='To Image Viewer ' &amp;amp; '&amp;lt;url&amp;gt;' &amp;amp; &lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;A href="http://xyz"&gt;http://xyz&lt;/A&gt;...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;A href="http://xyz..."&gt;http://xyz...&lt;/A&gt; is our link. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have QV 11 SR1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 08:14:04 GMT</pubDate>
    <dc:creator>Teppo_Ojala</dc:creator>
    <dc:date>2013-04-30T08:14:04Z</dc:date>
    <item>
      <title>Open a link to new browser window in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-link-to-new-browser-window-in-Straight-table/m-p/412482#M485229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created a straight table where one expression is a http-link (Representation = Link) to another solution. This is working nicely, but we would like to open this link to new browser window also with end users, who uses web client. In straight table we don't have a setting "open in same window" like we have in Action button. We have used a syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;='To Image Viewer ' &amp;amp; '&amp;lt;url&amp;gt;' &amp;amp; &lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;A href="http://xyz"&gt;http://xyz&lt;/A&gt;...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;A href="http://xyz..."&gt;http://xyz...&lt;/A&gt; is our link. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have QV 11 SR1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 08:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-link-to-new-browser-window-in-Straight-table/m-p/412482#M485229</guid>
      <dc:creator>Teppo_Ojala</dc:creator>
      <dc:date>2013-04-30T08:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Open a link to new browser window in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Open-a-link-to-new-browser-window-in-Straight-table/m-p/412483#M485230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this issue has 2 simple solutions (this solution also supports sub domain):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt;&lt;/SPAN&gt; intervene in the opendoc.htm&lt;/P&gt;&lt;P&gt;the file location is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax&lt;/P&gt;





&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can put a listener on the dom&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14844839038906147 jive_text_macro" jivemacro_uid="_14844839038906147"&gt;
&lt;P&gt;$(document).bind('DOMSubtreeModified', function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $("a[target='_blank']").each(function(i, element){resetBlankLinks(element);});&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;function resetBlankLinks(element){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; element.setAttribute('onclick','eval("'+element.href+'")');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; element.target="_self";&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;function &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;somefunction&lt;/SPAN&gt;(relativePath) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; window.open(document.referrer.match(/h(.[^/]+)/)[0] + "//" + document.referrer.match(/:\/\/(.[^/]+)/)[1] + relativePath);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;




&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now your qlikview table link will be&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14844839312129322" jivemacro_uid="_14844839312129322"&gt;
&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;'☍&amp;lt;url&amp;gt;javascript:void(somefunction("/SomeRelativePath/?SomeParam='&amp;amp;[SomeId]&amp;amp;'"))'&lt;/SPAN&gt;&lt;/P&gt;




&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a solution that lets you go to a function you decide and do whatever you want, but i also slows down the dom a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-size: 12pt; text-decoration: underline;"&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt;&lt;/SPAN&gt; this solution i like better, &lt;SPAN style="font-size: 10pt;"&gt;you can go to relevant qlikview scripts and change them (if your using the web client):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;go to&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax&lt;/P&gt;





&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;now you need to search in files for&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;v.target="_blank"&lt;/P&gt;





&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i found:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax\htc\QvAjax.js&lt;/LI&gt;&lt;LI&gt;C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax\mobile\js\smalldevices.js&lt;/LI&gt;&lt;LI&gt;the Qv.exe you cant change and this is not used in the web client&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in each file you will find few locations (should be 2), i'v changed them &lt;BR /&gt;from:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14844840011014720" jivemacro_uid="_14844840011014720"&gt;
&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;v.target="_blank";&lt;/SPAN&gt;&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14844840218941900" jivemacro_uid="_14844840218941900"&gt;
&lt;P&gt;v.target="_self";v.onclick=eval(m.url);&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my BI url is now:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14844840404683040 jive_text_macro" jivemacro_uid="_14844840404683040"&gt;
&lt;P&gt;'☍&amp;lt;url&amp;gt;javascript:void(window.open(document.referrer.match(/h(.[^/]+)/)[0] + "//" + document.referrer.match(/:\/\/(.[^/]+)/)[1] + "/SomeRelativePath/?SomeParam='&amp;amp;[SomeId]&amp;amp;'"));'&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see if this helps you, maybe you will want different stuff but this is how you can do it.&lt;/P&gt;&lt;P&gt;you might want to use different target, see:&lt;BR /&gt;&lt;A href="http://www.w3schools.com/tags/att_a_target.asp" title="http://www.w3schools.com/tags/att_a_target.asp"&gt;HTML a target Attribute&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in any case you can open chrome developer tools (F12) to see the code that is created:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14844901079687389" jivemacro_uid="_14844901079687389"&gt;
&lt;P&gt;&amp;lt;a href='javascript:void(window.open(document.referrer.match(/h(.[^/]+)/)[0]%20+%20&amp;amp;quot;//&amp;amp;quot;%20+%20document.referrer.match(/:\/\/(.[^/]+)/)[1]%20+%20&amp;amp;quot;/SomeRelativePath/?SomeParam=SomeId&amp;amp;quot;));'&lt;/P&gt;
&lt;P&gt;target="_self"&lt;/P&gt;
&lt;P&gt;onclick="eval(&amp;amp;quot;javascript:void(window.open(document.referrer.match(/h(.[^/]+)/)[0] + &amp;amp;quot;//&amp;amp;quot; + document.referrer.match(/:\/\/(.[^/]+)/)[1] + &amp;amp;quot;/SomeRelativePath/?SomeParam=SomeId&amp;amp;quot;));&amp;amp;quot;)"&lt;/P&gt;
&lt;P&gt;unselectable="on" style="position: absolute;"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;div title="☍"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); text-align: right; font-style: normal; font-weight: normal; text-decoration: underline; cursor: pointer; position: absolute; overflow: hidden; left: 0px; top: 128px; width: 20px; height: 16px;"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;div unselectable="on" style="position: absolute; left: 0px; top: 0px; width: 20px; height: 16px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;div class="injected" style="padding: 0px 2px; width: 16px; height: 16px; display: table-cell; vertical-align: middle;"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;div unselectable="on" title="☍"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; style="width: 16px; cursor: default; white-space: pre; overflow: hidden; word-wrap: normal;"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;a href='javascript:void(window.open(document.referrer.match(/h(.[^/]+)/)[0]%20+%20&amp;amp;quot;//&amp;amp;quot;%20+%20document.referrer.match(/:\/\/(.[^/]+)/)[1]%20+%20&amp;amp;quot;/SomeRelativePath/?SomeParam=SomeId&amp;amp;quot;));'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; target="_self"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; onclick="eval(&amp;amp;quot;javascript:void(window.open(document.referrer.match(/h(.[^/]+)/)[0] + &amp;amp;quot;//&amp;amp;quot; + document.referrer.match(/:\/\/(.[^/]+)/)[1] + &amp;amp;quot;/SomeRelativePath/?SomeParam=SomeId&amp;amp;quot;));&amp;amp;quot;)"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ☍&amp;lt;/a&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/a&amp;gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 12:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Open-a-link-to-new-browser-window-in-Straight-table/m-p/412483#M485230</guid>
      <dc:creator>yakir_manor</dc:creator>
      <dc:date>2017-01-15T12:49:14Z</dc:date>
    </item>
  </channel>
</rss>

