Hello EasyMorph people - I read all the other topics on EasyMorph but I am incredibly dumb and can not visual solutions out of context. I have the Share memory set up with values I want to share across all morphs. In one instance, I want to use the values as filters when downloading data from a database. When I recall the value I want with the shared memory action, it creates a table. I have tried different ways suggested by our not so bright AI and have failed. How can I use this value to create a parameter to be used to filter databases? Many thanks and I totally apologize if you are just having to reword what you already wrote because like I wrote out of context and I am staring into space. ![]()
Hi @keewee70,
What you describe is a good use case for Shared Memory. The solution to your question is more generic: how to pass a value from a table to a parameter.
Parameters in EasyMorph are not variables. They are constants that can't be changed over the course of a workflow. It's by design.
The correct way to work with parameters is to assign them in modules:
- Create a module with a parameter named "Filter". Use this parameter in the database query performed in this module.
- In the main module, use the "Call" action to call the module and assign its "Filter" parameter with a table value (use the "First column value" mode for this).
See the below example:
filter-parameter.morph (4.2 KB)
In your case, you can recall the filter value from the Shared Memory in the main module. And do database querying with the "Filter" parameter in the second module.
Modules are a very powerful feature of EasyMorph and I highly recommend learning how to use them. These articles can help:
Thanks, Dmitry! I will give it a whirl
