Set a Session variable to dynamic Variable value on Client Side returning null

I Thought one was able to set a Variable to a Server Connect >> data >>query >> value then on App >> page Load set a Session to that Variable and the Session would show that value?

Apparently this only work if you set the variable value to a static value like (1 or blue) and not something like (serverconnect.data.repeat1[0].email).

You get a ‘null’, ‘undefined’ or no session showing up depend on what you set the Session directly to. Either the (serverconnect.data.repeat1[0].email) or the Var1.value.

…Here is an on example On page load when session set to dynamic Variable value coming from a query repeat.

Let me if I am wrong.

On the front end perform this action on success of the server connect, not the page load. If you do this on app ready/load, the server connect action has not yet run and the value is then not available.

1 Like

Ahh That make sense. Thanks @mebeingken

I had it set up in a flow before to run on app load but the flow kept crashing wappler for some reason when I add a second flow to run a modal from the first flow if a condition was met. Hence why a revert to state management and ran into that little situation so thanks for explaining that to me.

1 Like