question

hermione12 avatar image
0 Likes"
hermione12 asked hermione12 commented

Write to Global Table using a command

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

FlexSim 20.0.10
global tablecodewrite to global table
write-to-gt.png (3.1 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

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered hermione12 commented
Table.query("UPDATE GlobalTable1 SET Sum=[First Number]+[Second Number]");
· 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.

hermione12 avatar image hermione12 commented ·
Thank you @Jason Lightfoot


0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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