jirazazabal
03-01-2022Cloud Apps
Clickable URL in pivots - Linux update to make it work
Hi,
If you are trying to implement a clickable URL in your pivot tables, and you are trying to follow the following article:
Clickable URL Links In Pivot Rows
You are going to get a pivot table with all the HTML code (<a href="...">)
instead of a clickable value. This is happening in Linux versions. If you want it to work, just replace the JS code in the article with the following:
widget.on('ready', function(){
var tags = $('tbody span:contains("<")');
for(var i = 0; i<tags.length; i++){
$(tags[i]).replaceWith(String(tags[i].textContent));
}
var tagsToCorrect = $('tbody div.table-grid__content__inner:contains("<")');
for(let tag of tagsToCorrect){tag.innerHTML = tag.innerText;}
});
And your solution should be working.
Hope it helps
BR
Hi!
The same results we could achieve without JS. For Pivot Table HTML is rendered as plain text. And we can change it in System Configuration.When enabled, Sisense renders HTML as HTML.