cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic Visibility of Input Controls in SAP Analytics Cloud

Eladtayarr
Explorer
0 Likes
959

In SAP Analytics Cloud, is it possible to dynamically show or hide specific Input Controls based on the values of other filters, such as a slider, switch, or box list?

For example, if a user selects a adjusts a slider to a specific range, can other Input Controls be automatically hidden or displayed accordingly?

Thank you in advance for your assistance and guidance!

Accepted Solutions (1)

Accepted Solutions (1)

DenisT
Explorer

Hi,

yes that´s possible. Let´s assume you have slider called "Slider_1", which allows values between 0 and 100 and whenever the slider is equal or above 50 you want to hide the input control called "InputControl_1" (and it should be visible otherwise, of course). You now need an "onChange" event coding on the slider (just click on the three dots next to the slider and select "Edit scripts".
Here´s an easy coding for the onChange script:

if (Slider_1.getValue() >= 50) {
	InputControl_1.setVisible(false);
} else {
	InputControl_1.setVisible(true);
}

Please notice, that you can improve this, by not hiding an already invisible input control, but I wanted to keep it simple here.

If the solution answers your question, please set it to "accepted solution". Thanks.

Kind regards,
Denis

Eladtayarr
Explorer
0 Likes
Thank you so much for your help!

Answers (0)