Page 1 of 1
Span of js session varijables
Posted: Sun May 23, 2021 12:18 pm
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?
Re: Span of js session varijables
Posted: Mon May 24, 2021 7:45 am
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()