question

hermione12 avatar image
0 Likes"
hermione12 asked hermione12 commented

How to use getRowbyKey?

Hello,

I am confused about getRowbyKey("key","columnname").

What should I write in "key" ?

For example :

ts.addTask(TASKTYPE_TRAVEL,Model.find(Table("GlobalTable" [Table("GlobalTable").getRowByKey("",1)]["Destination"]));

1659088548281.png


FlexSim 20.0.10
getrowbykey
1659088548281.png (5.9 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

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

The key is the value that identifies the row. 'getRowByKey' will return the number of the first row in which the value in "columnname" is equal to "key".

· 6
5 |100000

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