question

Manuel Sinco avatar image
0 Likes"
Manuel Sinco asked Manuel Sinco commented

Can I add a list of options in a Label of a Decision Point?

I'm building a Simulation Template using Decision Points and I want to include a label called logic that instead of an empty value it could give me all the available logics that I could have. So the user can choose one of those without writing.

It should be in the same way that we choose some logics for any trigger but in this case it'll be on a label.

Thanks in advance I appreciate your help..

Best Regards

Manuel.

FlexSim 18.2.3
label assignmentlist of options
5 |100000

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

Phil BoBo avatar image
2 Likes"
Phil BoBo answered Manuel Sinco commented

You cannot easily change the existing GUIs. To change the existing GUIs, you would need to use the Module SDK to create a custom module that customizes the program. That is overkill for what you are trying to do.

At a model level, you can specify that a specific object can have a custom GUI using this option in the GUI Builder:

This replaces the whole GUI with a custom GUI though, so you lose all the rest of the Decision Point Properties window. For your use case, this may actually be what you want. You could add a custom Advanced button that opens the main Decision Point Properties window if you still want to access the rest of the properties on the Decision Point.

You should reconsider why you want to put a combo box on the Decision Point Properties window. FlexSim is flexible, and you could do it if you really wanted to, but it wouldn't be easy. There are better solutions for your issue than modifying the Decision Point GUI.


gui-builder.png (39.2 KiB)
· 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.

Manuel Sinco avatar image Manuel Sinco commented ·

Thank you Phil, at least I know know that it's possible, it would be difficult but it's okay. I appreciate your help.

Thanks

0 Likes 0 ·
Joshua S avatar image
0 Likes"
Joshua S answered Joshua S converted comment to answer

There isn't a way to give a predefined set of options in a process flow activity like you want to do, you can build a GUI that would allow you to give the user options like this example model.Select the number on the Dashboard, and it will change the label value that will be given to the token created in the Source activity.

gui-example.fsm


gui-example.fsm (18.1 KiB)
· 7
5 |100000

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

Manuel Sinco avatar image Manuel Sinco commented ·

Actually I don't want to add it to a token but to the GUI of the Decision Point. I'll try to be more clear. What I need is that when you double click on a DP the GUI option appear as usual then go to labels and for a Label called Logics.

One way if could be possible would be by changing the DP GUI directy by adding that Option List and then Update the label with a string or something. I don't know if it's possible to change that GUI.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Manuel Sinco commented ·

You are trying to add a graphical interface to a new object. Im not familiar with SDK of FlexSim at all. Maybe there is the possibility to add a new library object to the Conveyor library in the SDK behaving similiar to the standard decision Point.

Instead of this challenging approach I would write all choosable logic in a trigger and select the desired function in a switch by case structure through a label value. The label value can you change by a Dashboard widget or GUI window. Maybe you find a code that opens a floating window or add another tab to the properties window, if you open the properties of the decision point.

The keyword in this comment is challenging!

1 Like 1 ·
Manuel Sinco avatar image Manuel Sinco Joerg Vogel commented ·

Actually, I just want to use the normal DP GUI and try to add the options. Basically I've already done the switch in my process flow which is based on the string value of the label.

At the end the user could write down the name of the logic by hand, but I want to reduce the risk of errors and include the list of options for that specific label. So following this idea I want to include in the current GUI a list of Options with them. I know that the current GUI of any Object is made in the same way with GUI option, that's why I want to add that part to update the label. As you are saying it's challenging but I think that might be possible.

I just want to know if it's possible or desist from it and just leave it to be written by hand.

Thanks.

0 Likes 0 ·
Show more comments
Joshua S avatar image Joshua S Manuel Sinco commented ·

That's not somethnig you will be able to change

0 Likes 0 ·
Manuel Sinco avatar image Manuel Sinco Joshua S commented ·

Is there anything else that could be done to achieve that objective?Or what is not possible? changing the GUI, Adding a List Option to a Label or both?

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.