Hi Dojo Community,
I want to link my Visio shape to an automation script with a predefined value/memory file.
Since each memory file contains only one value, my goal would be to define the memory file name in the shape data.
The value itself should be automatically selected.
How is this possible?
I've tried the following:
|MemoryFiles:ParameterName=memoryfilename
and
|Parameters:ParameterName=#memoryfilename
In both cases, the correct memory file is selected, but the only value it contains is not selected.
hi Felix
It's indeed possible to pass a specific memory file to a script. To do so, the fourth entry in the shape data field of type Execute should be like "MemoryName=MemoryFileName;…".
For instance, if the memory file on your script is called memory1 and the memory file TestMemory should be passed, then the following Execute shape data should be used:
Script:Test script|||memory1=TestMemory||
If more memory files should be passed they should be delimited with a semicolon:
Script:Test script|||memory1=TestMemory;memory2=OtherTestMemory||
More info is available on this docs page.
The script can then use the entire memory file. The entry can then be selected based on the position or the description in the memory file.
Let me know if this works out for your use case.