Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Add calculated value tooltips to a calculated value

Calculated values lacks of showing additional information other than the expression it was used (unless the display name changes). A little javascript helps to pass a hidden calculated value to it.

html

<div id="myCalcValue">
   Selected letters: <SpotfireControl id="6cdd0461700b42c98f246b8d61ffb55b" />
</div>

<div id="myCalcValueTootlips" hidden>
Calculated value tooltips:
  <SpotfireControl id="f245f0a3515d476783fbb36063e6669c" />
</div>

js

tooltip_source = "myCalcValueTootlips"
tooltip_target = "myCalcValue"

window.clearInterval(window.sectorTooltipInterval)
window.sectorTooltipInterval=setInterval(function(){
   document.querySelector("#"+tooltip_target).title = document.querySelector("#"+tooltip_source).innerText
}, 500);

output 








No comments: