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"]));
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"]));
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".
Table("Global Table").getRowByKey("Part2", "PartName");
will return 2
Hey @Jeanette F
Thanks for the command line. If I want to generalize and refer all the rows and not particular row?
Table("Global Table").getRowByKey("", "PartName");
I do not want particular 2 to be returned. Instead I want to read all the rows.
What to write in the command?
What do you mean by "I want to read all the rows". What value(s) do you want to extract from the table?
15 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved