Hi all, I am using a control GUI. A checkbox value stores the value in a table. Peachy so far. The problem rises when I open the control, it does not reflect the current cell value. Im using a Gui because it allows the user to interact with tabs.
Hi all, I am using a control GUI. A checkbox value stores the value in a table. Peachy so far. The problem rises when I open the control, it does not reflect the current cell value. Im using a Gui because it allows the user to interact with tabs.
Oh sorry my bad. Here the sample model downsized.fsm .
Hi @Enrique Elizaga, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
Here is an updated version of the model:
I added a coldlink to both checkboxes. You can read more about coldlinks here:
https://docs.flexsim.com/en/22.1/Reference/DeveloperAdvancedUser/GUIs/GUIViewAttributes/GUIViewAttributes.html#coldlink
Coldlinks allow the view to be refreshed (the value from the node is applied to the view) and applied (the value in the view is applied to the node). If you add a coldlink, most views know how to refresh and apply the value automatically.
The only exception is that your view doesn't have an OK or Apply button. So I added code to the OnPress of the checkbox to apply the link. Now, when you open the view, the boxes will be checked or unchecked, depending on what is in the table. When you check or uncheck the box, the table value will change to reflect what is in the box. Note that to see the change, you need to click on the table to get it to repaint.
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved