question

XiomaraG avatar image
0 Likes"
XiomaraG asked Jason Lightfoot commented

How can I store the value of an object's label in a table?

Hi, everyone! I've learned a lot these days.
In this ocassion, I want to know how I can store the values from a specific object in a table. I create one bus each hour that picks some products up in this time and I need to store how many products it picked up. The problem is that this is a label from the truck and when the hour passes, the object is destroyed. What can I do?

FlexSim 22.2.0
labelsstorage systemstore
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @XiomaraG, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

There is on several triggers and in custom code activity a picklist option under Data section called "Add Row and Data to Global Table". This template code can you use to write a label value into global table cell. On each new call of this function a new cell is added.

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.