Jump to content
We've recently updated our Privacy Statement, available here. ×

Spotfire Text Area - How to make sure a Calculated Value is fully loaded/ready


jack deng

Recommended Posts

Hi,

I can currently building my own custom KPI charts using HTML, CSS and JS in Text Area, and need to insert calculated values into the text area as

"

 

While I am applying some JavaScript functions based on the SpotfireControl tag, how can I ensure that the SpotfireControl tag is fully loaded/have data

My problem is sometimes that tag does not have any data, and it all depends on luck..

 

(I have been trying windows.onload, body onload... all these kind of events, nothing worked)

It would be great if you can give some advises.

 

Thank you

Haoge

Link to comment
Share on other sites

  • 1 month later...

You can use setinterval method to check every specific ms if calculated value is loaded or not then execute the corresponding action in script

==============================================

$(function() {

 

setInterval(

function()

{

$("#load :first-child").click();

}, 1000);

});

==============================================https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-46935

https://datashoptalk.com/ironpython-javascript-refresh-tables/

https://spotfired.blogspot.com/2015/01/trigger-javascript-when-changing-filters.html

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...