question

Sunada C avatar image
0 Likes"
Sunada C asked Joshua S commented

Global Table Label in Source Trigger

I have a global table with column called weight, SKU and I am trying to assign them as label to the flow item created in the source. I am using the following stuff where i am first assigning a counter label and then using that to access the table cell for label weight. This does not seem to work. I have seen other examples posted online which elude to this method. Any help is appreciated.

Regards

Sunada

FlexSim 18.2.2
global table source
flexsim-doubt.png (45.0 KiB)
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

Joshua S avatar image
0 Likes"
Joshua S answered Joshua S commented

Try using

Table("GlobalTable1")[current.C][1]

in the value area to set the weight label

· 12
5 |100000

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

Sunada C avatar image Sunada C commented ·

Also I tried the current.C as suggested and it did not work. Says label does not exist

0 Likes 0 ·
Joshua S avatar image Joshua S Sunada C commented ·

@Sunada C

Here's a small model to show it working. You can use getlabel(), it does the same thing, just current.C is shorter that's all. getlabel() is more flexible if your are trying to reference a variable name with another variable later on. tableexample.fsm

0 Likes 0 ·
tableexample.fsm (129.4 KiB)
Sunada C avatar image Sunada C Joshua S commented ·

@Joshua S

I downloaded your fsm file and ran it on my computer. It says row number invalid for the Global Table. It does not make any sense. See the screenshot of your model and output attached. I am also trying to do the same thing using process flow with Tokens and it is causing the exact same problem.

0 Likes 0 ·
flexsim-doubt.png (226.2 KiB)
Show more comments