question

Deepam Panchal avatar image
2 Likes"
Deepam Panchal asked Emily Hardy answered

How to open Global table from OnPress/OnSelect event from custom GUI?

Sample Model:

In this sample model, I have global table "MyTable" and GUI 1 which displays "MyTable" . I have a button "EditTable". I want to open Global table when I press it.

The model is attached: gui-tableviewtesting.fsm

FlexSim 18.1.0
gui builder
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

·
Emily Hardy avatar image
0 Likes"
Emily Hardy answered

In order to create this button you can insert the following code snippet:

applicationcommand("edittable", Table("MyTable"));

This line will open your global table. If you choose to create another button for another table, be sure to change the name in the line of code. To run the button, uncheck "Edit Mode" in Quick Properties.

I've attached your model below with the appropriate changes. Let me know if this helps!

12590-gui-tableviewtesting.fsm


5 |100000

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

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.