question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked Joerg Vogel answered

Read information stored in a list

I have the following example model.

I am loading information in a list with a single "token" which creates the same instance in the list but with different values in its label. When the information is pulled from the list, the token on the right side is assigned a value of 4 to all of them. What I am looking for is that each of them is assigned the value that is in the stored list, how can I do this?

For example token 1, Turn = 1, token 2, Turn = 2 ...

Problem Pull.fsm

FlexSim 21.1.4
global listitem list
problem-pull.fsm (31.4 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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

If it is a global list you can query the list as a table. Then you have access on all field entries.

https://docs.flexsim.com/en/21.1/Reference/DeveloperAdvancedUser/SQLQueries/

description in blue box near the end of first chapter.

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
0 Likes"
Jeanette F answered Jeanette F edited

Hello @Omar Aguilera Rico ,

The Token will pull the value that is pushed to the list. In this case, would it still serve its purpose if you pushed the label to the list instead of the token?

 List("ItemList1").push(token.Vuelta, 0)

problem-pull_JF.fsm


problem-pull-jf.fsm (31.4 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.