question

Thomas K4 avatar image
0 Likes"
Thomas K4 asked Abdullah A commented

How to find the rownumber in my GlobalTable by flow item labelmachting?

Hi! In the GlobalTable2, i have a list of all available articlenumbers (Artikelnummer). So when the flowitem arrives in the rack, I want to write in my GlobalTable2 in the second column the amount, so +1 for each. For this I have to match the label item.Artikelnummer to the Artikelnummer (values in the first column) in the Global Table, to find the row.

What do I have to write in the marked line? Picture below

Maybe someone can help me with this.

Thank you!


FlexSim 21.1.2
flexsim 21.1.2label matching to find row in the global table
inkedsc-li.jpg (949.7 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

Ralf Gruber avatar image
1 Like"
Ralf Gruber answered Abdullah A commented

Hi Thomas,

there is no picklist option to find a matching global table value for a given label value. I suggest you get familiar with the use of SQL in FlexSim:
User Manual/Reference/Developer and Advanced User Reference/SQL

The function you will have to look at is ROW_NUMBER(). So, this is not a single line of code, but rather a little piece of code where you also will have to consider:

- that now match is found

- that more than one match are found

Good luck

· 7
5 |100000

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