question

Oleksii avatar image
0 Likes"
Oleksii asked Logan Gold commented

How to identify the row number from the productivity table by product type

I wrote this request in Assign Labels:

Table("FL_CycleTime")[Table("FL_CycleTime ").getRowByKey(token.pipe.PipeType,14)][6]

but it gives a syntax error

FlexSim 25.0.1
how to identify the row number from the productivity table by product type
· 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.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Oleksii commented

Theres an extra space at the end of the second table name string. That is likely the issue if you copied the expression one-to-one to your post.

You can also use getValueByKey to shorten the expression. It does the same (get the row number, then read a different value from that row) but in a single function.

· 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.