Transferring Values to Local Storage with Success Event

I have a simple case where I want to transfer the value of "NO" as Mcontinue to Local Storage.
I start with MySQL code McontinueNOtoS as below:
SELECT "NO" as MCONTINUE1;
In the Success Handler I have:

This does not work.
What am I doing wrong?

Mike

1 Like

Hello @mdsmith1,

Based on the screenshot you shared, I believe the value should be 0 instead of 1.

Alternatively, if you can share the MySQL response, I can suggest a better way to correctly set the localStorage value for McontinueNOtoS.

Yes, I have tried a value of [0] in the index and that has not worked either.

If you have a better way to set the localStorage value, I would be pleased to hear from you.

Mike

1 Like

@mdsmith1 ,
Could you please share your query response? This will help me provide a more accurate solution based on your current setup.

If the value is not being set directly in localStorage, we can use a JS query to store the required value correctly.

This thing is working now with the index at 0.

Thank you so much.

I will mark this as the Solution.

Mike

1 Like