question

Hitesha N2 avatar image
0 Likes"
Hitesha N2 asked Matthew Gillespie commented

Drop Down in Global Table

Is there anyway i can provide Dropdown or list in Global Table for a particular cell?

I am working on a getting an input from user in particular column of Global Table, where he needs to choose from say 20 options. It would be really helpful if i can provide him these 20 options as a dropdown from the user to select?

FlexSim 18.2.2
global table
· 4
5 |100000

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

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

I'm not sure about a drop down. But if the value is variable, you could just use a Global Variable, and have the value of the cell point to the Global Variable. Then all your user would need to do is change the value of the global variable.

0 Likes 0 ·
Hitesha N2 avatar image Hitesha N2 Sam Stubbs ♦ commented ·

@Sam Stubbs

Value will be a string. I want user to select from the options.

Just like we can provide a cell with a dropdown and choose one option from the dropdown list.

0 Likes 0 ·
tannerp avatar image tannerp Hitesha N2 commented ·

Hi @Hitesha N2,

You could try using a Dashboard with a Combobox to select the variable. I'm still trying to find a way that would work for your situation. Perhaps you could share more details about your model or upload it so we can understand better what you're hoping to access your variable for.

1 Like 1 ·
Show more comments

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Matthew Gillespie commented

The simple answer is, you cannot do this in a table with an interactive drop down combo list. You can try to build a dashboard widget that has similar features. This widget lets you select a photo eye from a list. The list is built from all photo eyes of a conveyor system (1). Then a second widget will set the currently active logic on the selected photo eye (2).

You build these with Process Flow.

(1): The list items are checked to be

  • a photoeye
  • belonging to the same conveyor system
  • currently active logic

(2): There are different scenarios to set the active logic:

  • a) every photoeye has already all possible logic written in a trigger. You set a label value at the photo eye to choose the active logic. This is a switch case construct.
  • b) you copy the source code into the node needed for action.
  • c) you executes a user command which works similar to a).
  • d) you call a process flow instance which works similar to a).

If you need help how to build (1) and / or (2) please ask new questions!

· 5
5 |100000

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

Hitesha N2 avatar image Hitesha N2 commented ·
@Jörg Vogel

Thank you for the answer.

I will be having around 20 odd logic's/user command written on every photo-eye; but at each photo-eye, combination of two-four logic's will be selected and sequence of how these logic's will be executed varies.

Is there anyway, I can provide this kind of hierarchy in logic's on photo-eye?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Hitesha N2 commented ·

Please ask a new question and provide which logic snippets you want to combine from a catalog. My general idea consists of labels at a token, that set which logic steps are used. Then the token goes through the chosen subprocesses.

0 Likes 0 ·
Hitesha N2 avatar image Hitesha N2 Joerg Vogel commented ·

Okay. Thank You.

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier commented ·

Has the possibility of putting DropDown choices in Global Tables changed with the advent of parameters tables?

See picture. I'd like to be able to click in a cell and have 2 choices: Absent or Present.


0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Patrick Cloutier commented ·

@Patrick Cloutier This will be a feature of Option parameters in 21.1.

0 Likes 0 ·