question

King-Ki F avatar image
0 Likes"
King-Ki F asked Cliff King commented

Push To List - Multiple Values

Hello,

How would I push multiple values per token (SKU# & Batch#) into a List? I want to push a SKU# and a Batch# to the list so that when I pull from the list I can use a criteria based on the Batch#.

FlexSim 20.0.3
push to listflexsim 20.0.3
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

·
Cliff King avatar image
3 Likes"
Cliff King answered Cliff King commented

You can access labels on the thing being pushed to the list by simply setting up fields in the global list. In the following example, the thing that was pushed to a global list called "Patients" was a patient with several labels on it; therefore, I can add "Label" fields to the global list as shown.


animation.gif (834.6 KiB)
· 2
5 |100000

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

Cliff King avatar image Cliff King commented ·

I think you accidentally sent me the wrong version of the model because the token doesn't even have an "age" label defined on it at the time it is pushed to the list. Regardless, the main problem with your approach is that you are pushing token.SKU instead of the token itself to the list. If you push the token, then you can add label fields to the list that will be populated automatically with whatever the values of the pushed tokens are. If the values of the tokens will change after the token is pushed to the list, then you want to check the "Dynamic" box for the list field so that it is updated dynamically.

2 Likes 2 ·
1586970396330.png (521.2 KiB)
King-Ki F avatar image King-Ki F commented ·

When I try to push multiple values into the Global List, only 1 value is sent. How do I get it to show both values?


ClusterPickingTest_autosave.fsm


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.