question

Elise S avatar image
1 Like"
Elise S asked Joerg Vogel edited

Storage.System.querySlots() not a callable function

Hi there, I am trying to use the Storage.System.querySlots() command to query all slots in my Storage System that are empty however I am getting an error that this is not a "valid callable function". Does this mean that the Storage.System.querySlots command is not yet available or is my syntax wrong. Below is a screenshot of my query.

Thanks in advance for your help.

FlexSim 20.0.2
warehousestorage systemsql queriesslots
· 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.

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

Please post a model demonstrating your issue instead of just a screenshot of your code.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
3 Likes"
Joerg Vogel answered Joerg Vogel edited

The attached model availableslots.fsm executes a similar code of yours in on exit trigger of the source. The trigger prints the available slots in storage system to output console. There is just a small adjustment necessary. "querySlots" is called on a static property instead of a namespace definition. This means the word "system" must start with a lower case character.

Storage.system.querySlots(...);

availableslots.fsm (40.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.

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.