question

Borja Lorenzo avatar image
0 Likes"
Borja Lorenzo asked Borja Lorenzo edited

GUI Panel Synchronization

Hello

I have a GUI programmed using the GUI Builder, and it works perfectly with the flow and behavior of all the buttons.

When I insert this GUI into a Dashboard through a “model input” --> GUI Class, it displays correctly, but this panel does not behave the same. It seems that the codes I have in the onSelect of the comboboxes are being triggered, but the changes are not reflected in the GUI inserted into this dashboard.

Attached is an example model to see if you can help me.

Thanks in advance.


Ejemplo GUI.fsm

FlexSim 24.1.1
dashboardsguicomboboxgui buildergui class
ejemplo-gui.fsm (5.5 MiB)
5 |100000

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

1 Answer

Logan Gold avatar image
0 Likes"
Logan Gold answered Borja Lorenzo edited

Hi @Borja Lorenzo, there needs to be a small change in the User Commands when setting the params. They aren't getting set correctly, so the changes are not getting set on the active view tree, which means the GUI in the Dashboard isn't getting updated.

The lines that are setting the params are using one equal sign, but you would need to use two for the comparison that is needed for the ternary/comparison operator. You can also do something with an exclamation point instead of using equals signs, like this:

  1. treenode cb_month = (!param (2) ? Model.find("Tools/GUIs/GUI 1/cb_month") : param (2));
· 2
5 |100000

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