Eric Petrine 2 Posted December 12, 2019 Share Posted December 12, 2019 I added a text area and have some javascript and HTML and I would like to access information on the Data table. Is this possible I've been able to access document property values but I'm at a loss for how I should access column values from the Data table. I'm using Spotfire X. Link to comment Share on other sites More sharing options...
Seema Krishnani Posted December 13, 2019 Share Posted December 13, 2019 Please check the below link and let us know if this is of any help https://community.spotfire.com/wiki/tibco-spotfire-javascript-api-overview#toc-18 Link to comment Share on other sites More sharing options...
Tyger Guzman 2 Posted December 20, 2019 Share Posted December 20, 2019 In my expericnce when working only in the Spotfire environment you can only acess data table information through document properties or calculated values wrapped in a div with an ID. You can use Iron python scripts to take a data table or cross table and save as JSON format in a document property to be used in your javascript. https://spotfired.blogspot.com/2014/07/data-table-to-json.html. The method I use is the mashup/embedded analysis in an HTML page: If you are embedding your analysis in a HTML page. Then you can utilize the Javascript API to get data table elements. https://community.spotfire.com/wiki/spotfire-tipstricks-embed-spotfire-visualizations-webpages https://community.spotfire.com/wiki/tibco-spotfire-javascript-api-overview#toc-18 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now