Error in chart app, does not update parameter value

I’ve been trying to get my chart app to work for several days.
It only works the first time, but when I change the value of the global variable I passed to it via SQL, it keeps returning the same old value; it doesn’t recognize the new variable value.

I had the same with a grid. you need to recreate the app, unfortunately i did not find a better solution.