test

Warning when upgrading to Spotfire 10

TIBCO has deprecated the JQueryUI Javascript library in the latest Spotfire 10.0 release

TIBCO Community pages show us how to use JQuery properly

Trigger script when clicking on a tab

1. Page is opened
2. Text Area renders and executes Javascript
3. Javascript finds hidden action control link and clicks it

html
<div id='hiddenActionControl' style='display:none'>
<SpotfireControl id="link4ct10nc0n7r01" />
</div>

js
//executes every time the text area renders
$('#hiddenActionControl a').click()

script
#this script is triggered by the javascript associated in the text area through a hidden action control link.
Document.Properties["tabCount"] = Document.Properties["tabCount"] + 1

2 comments:

alirulzz@gmail.com said...

where does the following go:

script
#this script is triggered by the javascript associated in the text area through a hidden action control link.
Document.Properties["tabCount"] = Document.Properties["tabCount"] + 1

Thank you.

Jose Leviaguirre said...

@alirulzz, That is an iron python script that is triggered when the tab is clicked. So, every time the tab is clicked, or I should say, switched from a different tab, the page will render a text area causing the javaScript to run. JavaScript will then trigger the Spotfire script. In this example, it increments a document property.