question

Jun Woo K avatar image
0 Likes"
Jun Woo K asked Jun Woo K commented

Close Button on Dashboard

Hello, I'm developing multiple dashboards for a single model.

Some of my dashboards contain buttons used to open other dashboards, and I already know how to create such 'OPEN' button.

Also, I want to create buttons used to close dashboards, but I don't know how to do it.

Is there anyone who can explain how to create a 'CLOSE' button for a dashboard?

Thanks.

FlexSim 18.1.2
dashboardsdashboard buttonbutton
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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Jun Woo K commented

You add a Button.

The On Press Source code is:

treenode dsb = ownerobject(c).up.up;
applicationcommand("closedockedtab", dsb);

If you place the button inside of fields you need probably more ups.

close-current-dashboard-by-button.fsm

Edit: If you want to close a different dashboard, you must find it in the active view tree and parse the right pointer as second parameter into the command.


· 1
5 |100000

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

Jun Woo K avatar image Jun Woo K commented ·

Thanks, @Jörg Vogel , your answer is exactly what I want.

0 Likes 0 ·