question

Ruben Mariduena avatar image
0 Likes"
Ruben Mariduena asked Ruben Mariduena commented

How can a write values to a Global Table?

Can I write values from custom created labels or statistic from objects onto a blank global tables that I have created for the values to go to? I will then export those GTs onto Excel with the excelexporttable() on the Excel Data interface. For example when you click on an object and you see its statistics you have the option to pin to a dashboard, this is pretty much what I would like to do but push to a specific row and column on a GT

FlexSim 16.2.0
global tablelabelsstatisticsexport dataexcel export
· 2
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

Matt Long avatar image
2 Likes"
Matt Long answered

There are a couple of different pick options in the object triggers, namely 'Write to GlobalTable' and 'Add Row and Data to GlobalTable'. If you're comfortable coding there are some global table commands you can use like:

  1. settablenum(Table, Row, Column);
  2. settablestr(Table, Row Column);
  3. settablesize(Table, Rows, Columns);
  4. addtablerow(Table);
  5. addtablecol(Table);
  6.  

Refer to the Command Helper or Commands documentation for more information about these commands as well as additional commands.

5 |100000

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