question

Borja Lorenzo avatar image
0 Likes"
Borja Lorenzo asked Jeanette F answered

How can I get the value in the second column?

Hello

I'm unsure how to retrieve the value in the second column of a combobox. I need to use this value to compose a variable called 'Linea'. However, when I obtain it, I receive an index rather than a value (such as 1, 2, 8, or 4) when the LR was selected during depainting.

Thank you for your assistance.


1717580443496.png

FlexSim 24.1.0
flexscriptcustomcodecombobox
1717580443496.png (27.7 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @borlor,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

If your model contains sensitive information, you could first toggle your post as private using the "make private" option under your question's "gear" menu. Private questions are visible only to site moderators. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

Jeanette F avatar image
1 Like"
Jeanette F answered

Hello @Borlor, Your combo box needs a link to save the value that is set. Then you can reference that location to get the value.

ComboBoxValue.fsm


comboboxvalue.fsm (25.8 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.