Retrieve saved runs

I have a save button on the Dashboard. How can I use a button to retrieve a saved run? Save is the operation menu, but there is no retrieve in the operation menu.

Hi Bruce,

The “Save” feature is used to save variables into the Forio database so that variables can be retrieved without loading the vensim into memory.

In the backend what’s happening is all the variables listed in the context file (the *.ctx2 file in the model directory) get saved to the database. Then API calls can be used to read those variables without having to load the Vensim run. This is handy, for example, if you are comparing the same variable from a lot of runs. It’s much faster without having to start up Vensim on the back end.

In a turn by turn simulation like yours, this is mainly useful for facilitator pages, where you are reviewing a list of runs made by students. At the top of the page there is a toggle for User Interface vs Facilitator Interface. Choose Facilitator Interface. Go to the Class Results page. Add variables to the table. (these are automatically added to the context file and will be saved). Now, in the student side of the simulation, in the buttons on the decision page, add a Save operation so data is saved after you submit the decisions.

In an interface builder run comparison sim, this also happens automatically. Variables are added to the context file when you add new graphs, the “run simulation” has a save operation that’s part of it, and the run comparison graphs show multiple lines.

WILL

1 Like