Can't get localStorage App to work

I can’t get the localStorage app from the Success Event to work properly
See the 3 screen captures below.

Screen 1 shows how I establish the value of @LastName. The value is actally “Watson”

Screen 2 shows the Success Handler for local storage give @LastName a local storage value of “mToLastName”.

Screen 3 shows that Local Storage gets the name of the variable rather than the value of the variable.
What am I doing wrong.

Mike

Screen 1

Screen 2

Screen 3

Hey @mdsmith1,

Does the solution here not work for you? This seems like a duplicate of that post.

1 Like

Mitchel:

Here is what I ended up with.

This seems to be referring to an array but you click on it in the localStorage it gives the correct value. To get the correct value from localStorage you must add [0] to the end of the query.

Thanks for your feedback.

Mike

Mitchel:

I was never able to get the Success Handler (Local Storage) to work but I have found that table values can get transferred to local storage with Java Script as below:

const targetRow = table1.data.find(row => row.Nextra1 == 100 );
if (targetRow) {localStorage.setValue('myStoredValue', targetRow.Extra1);}

Mike