question

Sinisa avatar image
0 Likes"
Sinisa asked Ralf Gruber commented

How to add a value from to a second table (refer)?

Hey guys ,

My problem is that i want to add the same value from GlobalTable1 to GlobalTable2 ?

So that the GlobalTable2 refer to GlobalTable1.

Thanks in advance :)

globaltable.fsm

FlexSim 17.1.2
global tableaddrefer
global-table.png (12.4 KiB)
globaltable.fsm (13.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

Ralf Gruber avatar image
1 Like"
Ralf Gruber answered Ralf Gruber commented

Elisabeth,

this code line in the OnReset trigger of GlobalTable2 clones the whole table into GlobalTable1:

current.cloneTo("GlobalTable1");

This is the easiest way to do it.

Best wishes

Ralf

· 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.

Sinisa avatar image Sinisa commented ·

Oh ok, but is it possible that only for example the cell [1][1] get cloned ?

Thanks :D

0 Likes 0 ·
Ralf Gruber avatar image Ralf Gruber ♦ Sinisa commented ·

Sure,

use this for a single cell to copy:

Table("GlobalTable1")[1][1] = current[1][1];

Ralf

0 Likes 0 ·