Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have many storage units (a mixture of racks and floor storage) in a model and within any given storage unit, slot labels are the same for all slots.
How can I check the labels on a given slot programatically?
I can access a slot on a given storage unit by e.g.:
string storageName = "MyStorageUnit";
treenode su = Model.find(storageName);
Storage.Slot slot = Storage.system.findSlot("WHERE slot.storageObject == $1", 0, su);But how do I either find the value for a particular slot label, or find all values for all slot labels for this slot?
I have tried syntax like...
return slot.slotSKU;...where slotSKU is definitely a valid label applied to all slots in the storage unit, but this gives me the following exception:
exception: FlexScript exception: MAIN:/project/exec/consolescript c: <no path> i: <no path>
Solved! Go to Solution.