question

Gesa R avatar image
0 Likes"
Gesa R asked Regan Blackett answered

How to access a label for push to list?

Hi,

I push an item to a list (OnEntry of a queue). The item is a pallet with a box on it. The box has the label "Quantity" (array). How can I write this information to the global list?

I tried the label field but get the labels of the pallet,

and I tried the expression field but don't know what param(1) is or which commands I need.

Variant value = param(1);

Variant puller = param(2);

treenode entry = param(3);


return /**/value.?/**direct*/;

Thank you for helping.

FlexSim 18.0.5
labelslistnodes
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

·
Regan Blackett avatar image
0 Likes"
Regan Blackett answered

If the Pallet is the thing that is getting pushed to the List, the Expression field is the right way to go, and the expression would just be

value.first.Quantity

'value' is the thing that gets pushed to the list (pallet), 'first' refers to the first thing inside the value (box) and 'Quantity' is the label you assigned to it. As long as the pallet always just has one box in it, then this should be fine. Otherwise you might instead consider pushing the flowitems inside the pallet to the List and approach it that way.

5 |100000

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

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.