I have the following lines in my script I am saving to the data table and then running to make a graph builder graph. When I run the graph from the script it uses the variables as the max and min for graph builder but if I run the script saved to the data table (say I give the table to someone else) it uses default max and min instead. Any recommendations?
min_val = col min(:col1);
max_val = col max(:col1);
// rest of graph builder function not included
Dispatch(
{},
"Y Axis Name",
ScaleBox,
{Min( min_val ), Max( max val )}
)
I've tried several things but creating min_val and max_val as table variables and passing those to the dispatch felt like the most promising but no luck - defaults min and max are instead used.
Thanks in advance!