Span of js session varijables

Questions related to using nuBuilder Forte.

Span of js session varijables

Unread postby slobodan » Sun May 23, 2021 7:48 pm

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?
slobodan
 
Posts: 11
Joined: Sat May 08, 2021 8:50 pm
nuBuilder Version: 4.5

Re: Span of js session varijables

Unread postby kev1n » Mon May 24, 2021 3:15 pm

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()
kev1n
nuBuilder Team
 
Posts: 1763
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5


Return to General

Who is online

Users browsing this forum: No registered users and 16 guests