question

Rykou avatar image
0 Likes"
Rykou asked Rykou commented

How to push the label next to existing field in list?

Hi Flexsim,

I'm trying to push the label(item.order) next to existing field in list(List1).The purpose is because I need to pull item from list by label in future. Meanwhile, I need to storage bay,level,slot ID and confirming whether there is something in the slot.

I've set send to port by push to List1 and set the get label value by item.order.

82275-1714495925081.png

1714931359679.png

And I've set an on reset trigger to storage bay,level,slot ID and confirming whether there is something in the slot.

1714931618470.png

The List Entries are as follows.82297-1714553843419.png

I'm confused about it's possible for pushing the label to the right of the "content" field in list or not?82290-1714554473980.pngIf it is possible, how can I modify it?

The attachment is as follows.Thanks in advance.

Push item label to list _Question.fsm


FlexSim 24.0.0
labelpush to listlist entries
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·
If you can connect a slot label with an order, then you can add an field reading this slot label. Alternatively you can push list arguments additionally in conjunction with a slot value to have list field to evaluate a list value later. I’m curious, why you replicate existing query data of your warehouse in a list. For this purpose there are querySlots and queryItems methods in Storage system.
0 Likes 0 ·
Rykou avatar image Rykou Joerg Vogel commented ·

My purpose is to observe the changes of the items in the field through the list. So I hope the counter list is fixed. The items in the counters are constantly changing.

Thanks for the reply. But I still don’t quite understand how to adjust the model to achieve the purpose I want.

Hi, @Felix Möhlmann. Can you help me?Thanks alot.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Rykou commented

You can't add information to list entries by pushing something else to the list. To have field values change, they have to be set as "Dynamic" and the underlying information source has to change (either the label changes or in the case of an expression, the values that are used in the expression change).

You already implemented this correctly for the content field. With the orders, you have two options. Either leave it as a label and update said label each time an item enters/exits a slot (there are triggers for this available on the storage objects). Or you use an expression and write code that evaluates all slot items that are currently in the slot and returns the correct "order" value.

Which one is better is mostly just a question of speed. If the slot content changes often compared to how often you query/access the list field, then the expression is probably better. If it's the other way, updating the label on entry/exit might be better.

slot-content-list-field-fm.fsm


· 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.

Rykou avatar image Rykou commented ·

Thank you for your patient reply. It's very helpful.

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.