question

Martin K5 avatar image
2 Likes"
Martin K5 asked Borja Lorenzo edited

How to update/refresh dashboard view?

Hi,

I am working with dashboard as a toolbox for controlling the model. I used the GUI Class reference to display additional parametres. The problem is when I change something (or the user) in the GUI, the change is not overwritten in the Dashboard view and I need to simply close and reopen the dashboard to view the requisted changes.


Is there any other way to make the Dashboard reload or refresh instead of closing it?


1684410603675.png

The same situation is when using combobox and trying to modify the node's values via code, but the changes do not appear until you close and reopen the dashboard.


Thank you,


Martin

FlexSim 22.2.0
dashboardscomboboxcloserefreshreopen
1684410603675.png (20.4 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.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered VikSin commented

You should instead be using getdashboardcontrol() to find the combobox:


  1. Object dashctrl=getdashboardcontrol("myComboBox"); //myComboBox is the dashboard control ID, not the name - set it in properties
  2. treenode newOption=items(dashctrl).subnodes.assert("test3",6);
  3. comborefresh(dashctrl);
· 3
5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Borja Lorenzo edited

Does a command of repaint do the same?

· 4
5 |100000

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