Double Click custom JS function calling Helical Insight 5.0

Hello Team,

I am using Helical Insight 5.0, i want to call some JS function on double click on tabular visualization. Is it something i can do? If yes, then how to achieve this?

Thank you,
Netta.

Hello Netta.,

Yes this can be done. You can write custom code and add it in JS editor. Below is sample :

function delayedFunction() {

let table = document.getElementById(“chart_1_content_table”);

table.addEventListener(“dblclick”, function(event) {

var value = event.target.textContent;

let new_url =*** [***https://URL?dir=1689665466882/1689665606615/1690835085384&file=1be03c4d-f503-43e4-b95e-2fff2c2ddfba.report&mode=open&sent_val=${value***](https://reports.parkloyalty.com/hi-ee/hi.html?dir=1689665466882/1689665606615/1690835085384&file=1be03c4d-f503-43e4-b95e-2fff2c2ddfba.report&mode=open&sent_val=$%7bvalue)***}

var newTab = window.open(new_url, “_blank”);

console.log( new_url);

});

}

setTimeout(delayedFunction,2000);

Similar to this, you can write your own function and call on double click of target in tabular visualization.

Thank you,
Helical Insight.