I've already searched a lot of topics about it here, but none of them worked for me.
I tried to replicate this example: https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-45505?_ga=2.130727247.1933645704.1560176404-1510580711.1547722993
But it didn't work. I've attached in this post my attempts.
My Spotfire version is 7.14
Count of "JBF A" with label: <DIV id="labelJBF"><SpotfireControl id="2e9830d4a91b405ba7628907457683f8" /></DIV> <DIV>Count of "JBF A" with Calculated Value: </DIV> <DIV id="calcVV"><SpotfireControl id="565dce68145e4374bceec2a4f9ad4ee3" /></DIV> <DIV>Count of "JBF A" manual: </DIV> <DIV id="manualV">6</DIV>
<SCRIPT> var labelVal = $("labelJBF").text(); alert('Label >> ' + labelVal); var calcV = $("calcVV").text(); alert('Calculated Value >> ' + calcV); var manualVal = $("manualV").text(); alert('Manual >> ' + manualVal); var calcID = $("2e9830d4a91b405ba7628907457683f8").text(); alert('Directed ID >> ' + calcID); </SCRIPT>