question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked

old value or new value not getting correct value in Model parameter option

Hi,

When we use model parameters of the type option we like to double click on the field to get all the options as a drop down menu:
1712653309108.png

Clicking on a different option does change the selected option, but it does not work 100% correctly in the OnSet code I believe.
I added this simple print statement in the onSet code to print something only when the value changes:
1712653418333.png

Double clicking like described above never prints anything. I only get something printed when I use the number on my keyboard to change the options.

You can more or less see this in the attached gif, first I try it by selecting the drop down option which does not print something, then I use the keyboard which does print.


0904-paramoption.gif


Is this the expected behavior?

Hopefully this question is clear enough.

Thank

FlexSim 24.1.0
model parameters tableoptiondropdown
1712653309108.png (9.4 KiB)
1712653418333.png (37.9 KiB)
0904-paramoption.gif (130.8 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.