<?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: Hyperlink not clickable with custom visual. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39616#M1210</link>
    <description>&lt;P&gt;I have not found any alternative.&lt;/P&gt;&lt;P&gt;Native visuals can use urls because they are not sandboxed in iframes.&lt;/P&gt;&lt;P&gt;I understand Microsoft does this for safety so&amp;nbsp;improper developed custom visuals can't&amp;nbsp;collide but it would be nice if we wern't limited in functionality.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2016 09:27:38 GMT</pubDate>
    <dc:creator>vincent_1234</dc:creator>
    <dc:date>2016-06-01T09:27:38Z</dc:date>
    <item>
      <title>Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39446#M1202</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on creating custom visual which creats simple hyperlink using d3js.&lt;/P&gt;&lt;P&gt;Some how when its clicked it dosent open the browser even though the link has proper href and target tags.&lt;/P&gt;&lt;P&gt;I also tried by giving the column appropriate Data Category of Web Url.&lt;/P&gt;&lt;P&gt;Is this due to any security reasons?&lt;/P&gt;&lt;P&gt;Isnt that possible in custom visual?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 12:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39446#M1202</guid>
      <dc:creator>dhavalu</dc:creator>
      <dc:date>2016-05-31T12:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39454#M1203</link>
      <description>&lt;P&gt;It is because of sandboxed iframes are blocking this behavior&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When clicking hyperlink:&lt;/P&gt;&lt;P&gt;Blocked opening&amp;nbsp;url&amp;nbsp;in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When embedding in iframe:&lt;/P&gt;&lt;P&gt;Refused to display url&amp;nbsp;in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 13:29:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39454#M1203</guid>
      <dc:creator>vincent_1234</dc:creator>
      <dc:date>2016-05-31T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39603#M1209</link>
      <description>&lt;P&gt;Hey Vincent, Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any alternative to this. How come the exiting table control render link tag when the column is "Web Url"?&amp;nbsp;Any Idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 08:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39603#M1209</guid>
      <dc:creator>dhavalu</dc:creator>
      <dc:date>2016-06-01T08:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39616#M1210</link>
      <description>&lt;P&gt;I have not found any alternative.&lt;/P&gt;&lt;P&gt;Native visuals can use urls because they are not sandboxed in iframes.&lt;/P&gt;&lt;P&gt;I understand Microsoft does this for safety so&amp;nbsp;improper developed custom visuals can't&amp;nbsp;collide but it would be nice if we wern't limited in functionality.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:27:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39616#M1210</guid>
      <dc:creator>vincent_1234</dc:creator>
      <dc:date>2016-06-01T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39858#M1213</link>
      <description>&lt;P&gt;Yes. There are certain restrictions with the desktop version and web version like link, loading scripts etc.&lt;/P&gt;&lt;P&gt;Thanks for the insight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 06:19:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39858#M1213</guid>
      <dc:creator>dhavalu</dc:creator>
      <dc:date>2016-06-02T06:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39871#M1215</link>
      <description>&lt;P&gt;The following code worked for me while trying to create a custom visual that have a Resolve link which redirects to an API on click. I used the default YourVisual template and added the link as&amp;nbsp;&lt;/P&gt;&lt;P&gt;tr.selectAll("td")&lt;BR /&gt;.data(d=&amp;gt; d)&lt;BR /&gt;.enter().append("td")&lt;BR /&gt;.attr('data-th',(d, i) =&amp;gt; viewModel.categories[i].value)&lt;BR /&gt;.text(d =&amp;gt; this.format(d)).append('a')&lt;BR /&gt;.attr("href", "&lt;A href="https://www.google.com/" target="_blank" rel="nofollow"&gt;https://www.google.com&lt;/A&gt;&lt;A href="http://www.google.com%22%29/" target="_blank" rel="nofollow"&gt;")&lt;/A&gt;&lt;BR /&gt;.attr("target","_top")&lt;BR /&gt;.text(" Resolve");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:21:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39871#M1215</guid>
      <dc:creator>Sreejith</dc:creator>
      <dc:date>2016-06-02T07:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39876#M1216</link>
      <description>&lt;P&gt;This doesn't work for me (either _top or _blank) in both designer and portal&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:45:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/39876#M1216</guid>
      <dc:creator>vincent_1234</dc:creator>
      <dc:date>2016-06-02T07:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/40572#M1244</link>
      <description>&lt;P&gt;Desktop Power Bi restricts hyperlinks.&lt;/P&gt;&lt;P&gt;Below code works for Power Bi Web.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var val = '&lt;A href="https://powerbi.microsoft.com';" target="_blank"&gt;https://powerbi.microsoft.com';&lt;/A&gt;&lt;/P&gt;&lt;P&gt;tr.append("td").append("a").attr("href", val).attr("title", val).attr("target", "_blank").text(val);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure that url is valid http or https protocol. Without the protocol the link would try searching within subdomain of&amp;nbsp;&lt;A href="https://app.powerbi.com" target="_blank"&gt;https://app.powerbi.com&lt;/A&gt; and the page wont get displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this out.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 06:39:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/40572#M1244</guid>
      <dc:creator>dhavalu</dc:creator>
      <dc:date>2016-06-06T06:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/74697#M2509</link>
      <description>&lt;P&gt;I got a solution on last Friday 30. Sep 2016.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try out window.open in the onClick method.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            bars.on('click', function(d) {
                selectionManager.select(d.selectionId).then((ids: ISelectionId[]) =&amp;gt; {
                    bars.attr({
                        'fill-opacity': ids.length &amp;gt; 0 ? BarChart.Config.transparentOpacity : BarChart.Config.solidOpacity
                    });
                    window.top.location.href = "https://www.google.com";
                    //window.open("https://google.de");
                    d3.select(this).attr({
                        'fill-opacity': BarChart.Config.solidOpacity
                    });
                });

                (&amp;lt;Event&amp;gt;d3.event).stopPropagation();
            });

            bars.exit()
               .remove();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But today i got the sandbox error in my chrome console. Did the Power BI Developer change something on the IFrame?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 08:39:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/74697#M2509</guid>
      <dc:creator>Mcburn</dc:creator>
      <dc:date>2016-10-04T08:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink not clickable with custom visual.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/363664#M10849</link>
      <description>&lt;P&gt;For anyone still searching for the answer to this (as I was), there is a utility in Power BI to do this called Launch URL. You can use it as simply as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"click"&lt;/SPAN&gt;&lt;SPAN&gt;, data&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;d3&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;event&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;MouseEvent&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;preventDefault&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;host&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;launchUrl&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://example.com/" target="_blank"&gt;https://example.com/&lt;/A&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;+&lt;/SPAN&gt;&amp;nbsp;data&lt;SPAN&gt;.&amp;lt;yourField&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the docs about it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/LaunchURL.md" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/LaunchURL.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 23:13:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Hyperlink-not-clickable-with-custom-visual/m-p/363664#M10849</guid>
      <dc:creator>Luisa</dc:creator>
      <dc:date>2018-02-22T23:13:27Z</dc:date>
    </item>
  </channel>
</rss>

