Page 1 of 1

Hash Variables (nuSetHash)

Posted: Mon Dec 08, 2014 6:13 pm
by nekpap
Hi,

I' am trying to pass values from a form to another form.

Into the first form (on nuLoadEdit),I set a hash variable with nuSetHash('student_id', '123').
Later I open the second form (with nuOpenForm). In this form when I'm trying to get the value with the nuGetHash('student_id'), I get "undefined".
Why that happens?
At the help page http://wiki.nubuilder.net/index.php/Jav ... C_value.29 says:

nuSetHash(name, value) :"Adds or sets a hash variable in the global hash variable array".

What exactly do you mean by global?

Thanks in advance
Nektarios

Re: Hash Variables (nuSetHash)

Posted: Mon Dec 08, 2014 11:36 pm
by admin
nekpap,

nuSetHash() and nuGetHash() are used to access the js object, nuFORM...

(BTW, don't go changing any that are already set).
Capture3.PNG
Opening a second window will not add the first window's nuFORM to the second window's nuFORM.

Setting nuSetHash('student_id', '123') in window 1 will not mean you can access it from window 2.

but it can be accessed using hash variables.. http://wiki.nubuilder.net/index.php/Hash_Variables

Steven