Icon in Spotfire disappears but does not disappear

I have a list in Spotfire with countries in it. There is (None) in the list as an option. When a country is selected in the list, the country name and asterisk icon are displayed on another test panel. After that, if (None) is selected, the name of the country disappears, but the star only disappears. I need it to disappear, just like the text.

Here is an example:

USA selected
country selected country exit

then select None none selected none output

Here is the javascript that I have in the panel for output. The goal is to not display the icon if None is selected.

$("#b67963fdb4724d11b744affb05048a23").on('change',function(){
 $("#b67963fdb4724d11b744affb05048a23 option:selected").text()=="None"?
 document.getElementById($("#9bf3680df22140b9955b39c8ba6cfff8")).style.display = "hidden" :
 document.getElementById($("#9bf3680df22140b9955b39c8ba6cfff8")).style.display = "visible"
})
Run codeHide result

Here are the properties of the icon:

enter image description here

How to disable the icon if no country is selected?

+4
source share
1 answer

, , - , . , , .

, , , R, A, U C; KOREA, , , , Starts with K, . (None) next .

, SN() ( "SubstituteNull" ). , NOT NULL , . :

SN(UniqueConcatenate([Country]), '_')

, ; _, .

. Spotfire 7.6.

+2

Source: https://habr.com/ru/post/1653023/


All Articles