html:
<pre>
Spotfire Input Control linked to 'myDocProperty':
<span id='spotfireInputWrapper'>
<SpotfireControl id="c5314cd0a5cc466eb0e55f5e463ec324" />
</span>
Spotfire Label displaying current 'myDocProperty' value:
<SpotfireControl id="79f728c3651f4ee1bcc10f68732954f8" />
html input
<INPUT id="htmlInput" value='hello'/>
html button that triggers javascript:
<SPAN id=ok>ok</SPAN>
</pre>
js:
//javascript function that transfers html input value to spotfire input property control
$('#ok').button().on('click',function(){
var jsValue = $('#htmlInput').val()
$('#spotfireInputWrapper input').val(jsValue).blur()
})
<pre>
Spotfire Input Control linked to 'myDocProperty':
<span id='spotfireInputWrapper'>
<SpotfireControl id="c5314cd0a5cc466eb0e55f5e463ec324" />
</span>
Spotfire Label displaying current 'myDocProperty' value:
<SpotfireControl id="79f728c3651f4ee1bcc10f68732954f8" />
html input
<INPUT id="htmlInput" value='hello'/>
html button that triggers javascript:
<SPAN id=ok>ok</SPAN>
</pre>
js:
//javascript function that transfers html input value to spotfire input property control
$('#ok').button().on('click',function(){
var jsValue = $('#htmlInput').val()
$('#spotfireInputWrapper input').val(jsValue).blur()
})
ConversionConversion EmoticonEmoticon