Forum Discussion
Display a measure as a hyperlink in a custom table visual is disabled
Hi tkerkman,
I have been working on ability to create and display a measure as a hyperlink in a custom table visual.
What custom table visual are you using? Is it from Office Store or created by yourself?
If MS intentially disabled hyperlinks as I described above... why? To me it makes not sense to limit the capabilites of Power BI.
I don't think the hyperlinks are disabled on Power BI service, as the hyperlinks shown on the Table visual for a column still work, and are clickable. :smileyhappy:
Regards
I have created a custom table visual using the code below:
constructor(options: VisualConstructorOptions) {
var captionArea = document.createElement("div");
captionArea.innerHTML = "This is test chart";
options.element.appendChild(captionArea);
}
public update(options: VisualUpdateOptions) {
var val = JSON.stringify(options.dataViews[0].table.rows);
val = val.replace('[["', '').replace('"]]', '')
var holder = d3.select("div");
holder.append("table").append("tr").append("td")
.append("a")
.attr("href", val)
.attr("target", "_top")
.text(" Measure Link");
}
As you can see the, the link “appears”, but it is not active. Meaning, clicking on the link does nothing. However, if I open the same report in Google Chrome and right mouse click on the link to “Open New Window, it works as expected.
Screen shot of custom table visual.