Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, 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: 4564
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 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);