question

shanice.c avatar image
0 Likes"
shanice.c asked Patrick Cloutier answered

How to use "Edit" component to set label value?

Hello, I try to set TaskExecuter's label value using combo box, and show value using "Dynamic Text" tool.

Also, I would try another way typing value manually in edit box, then click a button to set that value to Taskexecuter. My I ask how to use "Edit", there is only link variable in code, how does the "button" trigger get "edit" value, then set to taskexecuter?

1656595162772.png

1656594062673.png

testgui.fsm

FlexSim 22.1.0
guicomboboxeditor
1656594062673.png (115.1 KiB)
1656595162772.png (39.3 KiB)
testgui.fsm (63.3 KiB)
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

·
Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier answered

In the attached model, I did it in 3 methods for TaskExecuter1:

  1. Enter the text in the field and it automatically updates
  2. Select from combo and the value is zone1, zone2 or zone3
  3. Select from combo and the value is 1, 2 or 3.

Does that help?

testgui_pat.fsm


testgui-pat.fsm (63.2 KiB)
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.