Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Span of js session varijables
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm
Span of js session varijables
Stored sessionStorage variables I can get in the same form and in it's subform, but not in the form opened by lookup. I tried with localStorage variables, but with same result. Unexpected or not?
-
- nuBuilder Team
- Posts: 4299
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Span of js session varijables
It works for me.
E.g. set in the main form's Custom Code:
Retrieve in the in the form opened by the Lookup:
Also with nuSetProperty(), nuGetProperty()
E.g. set in the main form's Custom Code:
Code: Select all
sessionStorage.setItem('key', 'value');
Code: Select all
var data = sessionStorage.getItem('key');
console.log(data);