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:

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

Run this script:

Array slots=Storage.system.querySlots("");
List("Slots").push(slots);
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.

Nour B3 avatar image Nour B3 commented ·

Thank you, it works perfectly and helped me a lot.

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.