Write to Global Table using a command

Write to Global Table using a command

anjunittur123
Not applicable
130 Views
2 Replies
Message 1 of 3

Write to Global Table using a command

anjunittur123
Not applicable

[ FlexSim 20.0.10 ]

What is the command used to write to global table into the code snippet? I want to store calculated data in a variable and the same values should be stored in global table from the code.

Example:

Adding 2 numbers : here I sum the 2 numbers into a variable sum. The values calculated from the code should be stored/written to the Global Table column name "Sum".

How to achieve this?

write-to-GT.PNG

0 Likes
Accepted solutions (1)
131 Views
2 Replies
Replies (2)
Message 2 of 3

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution
Table.query("UPDATE GlobalTable1 SET Sum=[First Number]+[Second Number]");
Message 3 of 3

anjunittur123
Not applicable
Thank you @Jason Lightfoot


0 Likes