-
Goal: Using sprocs globally without referring to specific retool elements by name
-
Steps: I've got retool running against Azure SQL with parameterized stored procedures just fine, but I can't figure out how to use them repeatedly if they're global in nature, like one that performs a calculation with a variety of different parameters. Some of these would be per-user parameters, while others might be global to the app. As an example, the user change have filters to show a different cycle_id.
My options appear to be:
- Reference specific elements, like select1.value - but this doesn't really make sense when I want to use it many times with the parameter set from many different places.
- setting local storage everywhere and updating it
- using queryparams
but those all seem more complex than what I need. Is there some way to do this that I'm just not seeing, that would let me send the parameter values whenever and wherever I want to use it? Or have I been staring at this too long, and I'm missing some sort of design pattern?