question

Tamilselvan avatar image
0 Likes"
Tamilselvan asked Jason Lightfoot edited

Access Table in tokens label

How to access table in tokens label, token need to do certain amount of activity listed in the table,

Thanks in advance

FlexSim 23.1.1
labels
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Please give an example of the data you want to access and how you want it stored on the token (as a single value, array or local table).
0 Likes 0 ·
Tamilselvan avatar image Tamilselvan Jason Lightfoot ♦ commented ·

Hi @Jason Lightfoot

I need to access as a local table

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot edited

Here's an example model in which a global table is copied to a token label and a random value from that table label is accessed and written to a different label on the token.

token-table-label.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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Instead of 0 I suggest assigning a string like this to make it clearer which labels are tables:

 assignTo.labels.assert(labelName, "<table>");    
1 Like 1 ·

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.