cancel
Showing results for 
Search instead for 
Did you mean: 

Clickable URL in pivots - Linux update to make it work

jirazazabal
9 - Travel Pro
9 - Travel Pro

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

1 ACCEPTED SOLUTION

Angelina
9 - Travel Pro
9 - Travel Pro

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.

Angelina_0-1646289383205.png

Angelina_1-1646289393055.png

When enabled, Sisense renders HTML as HTML.

 

View solution in original post

2 REPLIES 2

Angelina
9 - Travel Pro
9 - Travel Pro

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.

Angelina_0-1646289383205.png

Angelina_1-1646289393055.png

When enabled, Sisense renders HTML as HTML.

 

Thanks for sharing!