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.

Span of js session varijables

Questions related to using nuBuilder Forte.
Post Reply
slobodan
Posts: 25
Joined: Sat May 08, 2021 1:20 pm

Span of js session varijables

Unread post by slobodan »

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?
kev1n
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

Unread post by kev1n »

It works for me.

E.g. set in the main form's Custom Code:

Code: Select all

sessionStorage.setItem('key', 'value');
Retrieve in the in the form opened by the Lookup:

Code: Select all

var data = sessionStorage.getItem('key');
console.log(data);
Also with nuSetProperty(), nuGetProperty()
Post Reply