question

vigneshs avatar image
0 Likes"
vigneshs asked 我才是馬邦德 edited

button events in flexsim dashboard not working in Flexsim web server

Flexsim software supports the dashboard button click events. But when using my flexsim model in Web server, the button click event in web server is not updating real time. Attached the demo video showing when using the button click from dashboards the web server doesn't reflect any changes but when reloading or coming back to same page shows the updated page. Since web pages needs a reload or ajax or jquery to accomplish the event reponse to get updated in the same page of button click what can be done to fix this in flexsim web server. please advice on this. close-current-dashboard-by-button_autosave.fsm

FlexSim 21.2.3
flexsim webserverweb server
· 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.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

The FlexScript code you are firing on the button's press is closing the window on the server.

The view you are seeing in the browser is part of the client-side HTML. If you want to close that, you need to execute JavaScript on the client.

The client isn't going to get any updates about what has happened on the server unless you send it updates or refresh the page.

To close a dashboard view on the client-side, right-click it and select Close.

1639753771379.png

You can also undock it and push the X button:

1639753997193.png


1639753771379.png (153.7 KiB)
1639753997193.png (75.2 KiB)
· 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.