question

Nour B3 avatar image
0 Likes"
Nour B3 asked Nour B3 commented

get all adresses in a global table

Hello,

how can I display all slot addresses in a global table, I want to have as result a table with one column that contains all the addresses of storage objects ( rows num = num of addresses).

Thanks,


FlexSim 22.2.0
address schemeaddressgolbal tables
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
0 Likes"
Jason Lightfoot answered Nour B3 commented

Add a global list called Slots. Add two expression fields Rack and Address to the list with these expressions:

  1. value.as(Storage.Slot).storageObject
  1. value.as(Storage.Slot).address

Run this script:

  1. Array slots=Storage.system.querySlots("");
  2. List("Slots").push(slots);
  3. Table.query("SELECT * FROM Slots").cloneTo(Table("GlobalTable1"));

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