Spotfire: Passing value from HTML/JavaScript to Document Property

Posted on Updated on

Reference snippet to pass a radio button value into Spotfire context, that is into a Document Property.



<FORM><B>Select date for filtering:</B>
<P>
<INPUT id=”pack1″
onclick=”document.getElementById(‘145de349837d49f493cc9ec23743b05f’).value=document.getElementById(‘pack1’).value”
value=”N” CHECKED type=radio name=pack1>
Date 1<BR>
<INPUT id=”pack2″
onclick=”document.getElementById(‘145de349837d49f493cc9ec23743b05f’).value=document.getElementById(‘pack2’).value”
value=”Y” type=radio name=pack1>Date 2
</FORM>
</P>


HTML to Document Property

Link to sample Spotfire analyses

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s