question

Maíra A avatar image
1 Like"
Maíra A asked Maíra A commented

How can i pull a queue name from a global table?

I would like to pull a queue name from a global table adding a number according with the index. I tried that using the string type in a global table, but it didn't work. Have another way to do that?

test

FlexSim 21.0.10
queueglobaltablestring
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

·
Kavika F avatar image
1 Like"
Kavika F answered Maíra A commented

Hey @Maíra A, I think I found the problem. When you evaluate

token.name + string.fromNum(token.number)

it returns 1. That's because "name" is a special label that, in this case, is the id of the token

1659733218088.png

So, to get the right value, I changed your label to "Name" (capitalized) and it worked.

1659733250782.png

1659733258651.png

You don't need that "link" label, I just made it to help debug.


1659733218088.png (1.8 KiB)
1659733250782.png (54.1 KiB)
1659733287600.png (55.2 KiB)
· 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.

Maíra A avatar image Maíra A commented ·

Thank you so much for your answer! Just if someone have the same doubt, at this test model the problem was really the name "name" of the label. In contrast, in my really model i was using other name and was not working, this happened because i hadn't create the queues yet, so the system doesn't read the string. When i created the queue with a compatible name this worked.

2 Likes 2 ·

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.