question

Mischa Spelt avatar image
0 Likes"
Mischa Spelt asked Mischa Spelt commented

GUI read-only for bundles in tabcontrol?

Hi @anthony.johnson

Thanks again for your excellent answer on my previous question, but I have a follow-up question. It seems like the table is editable when I give it node table data, but when the table is a bundle it suddenly becomes sort-of-readonly.. that is: the editor does not show so you cannot type a value in a cell, but the OnClick is able to change the value (and this gets stored to the tree).

Note that this only happens when I put the tableview inside a tabcontrol -- if it's directly in the GUI root it works fine!

Here's an example model: try double clicking GlobalTable and BundleTable in the tree and editing a value in the first column -- CustomGUI_viewwindowtype5.fsm

FlexSim 22.0.0
custom guieditor
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

·
anthony.johnson avatar image
2 Likes"
anthony.johnson answered Mischa Spelt commented

It's throwing an exception trying to create an undo record because the undohistory attribute of the table view does not reference a valid undo history. Change the undohistory path from ../.. to ../../../.. and it fixes the issue. Sorry, we kind of assume that the view structure for undo history tracking is set up correctly, so our error catching in that area is not as filled out.

· 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.

Mischa Spelt avatar image Mischa Spelt commented ·
Thanks! I think I wouldn't have figured that out on my own. I understand there is no documentation for such an internal feature though.
0 Likes 0 ·

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.