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

Bind widget to model variable

0 Likes
1,167

Hi SAC experts,

Is it possible to bind a user input widget to a model variable with the goal of modifying the model variable from the input widget? The documentation seems to think so, unless I misunderstood.

I was able to do it through scripts in onChange events of input widgets (DataSource.setVariableValue), but is it possible without scripting?

Thanks for your time

Accepted Solutions (1)

Accepted Solutions (1)

avsalynin
Active Contributor

emilianogcasas

you can fill in the list of values through the bind

you can also pass the selected value without setVariableValue to a pre-created Script Variable

but after that you still need to do something like

Chart_1.getDataSource().setVariableValue("ZBA0194_CEOM_02",Variable1);   

is it possible to make it so that immediately from the dropdown or input field directly to the variable is a good question.

0 Likes

Indeed, using script variables or directly from the user input widgets I can update the model variables in event handlers.

Thanks!

Answers (0)