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.

1 Answer

Felix Möhlmann avatar image
1 Like"
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.