Page 1 of 2
Global Hash cookie disappears
Posted: Tue Jan 02, 2024 10:29 am
by luca.ongaro
Hi, happy new year.
I am facing a weird problem.
I set a global HK in my nuuserhome using nuSetProperty() with true as 3rd argument, to use it in a form.
The HK works as expected in BB code, but is unavailable to BE.
According to nuDebug(nuHash()); the HK disappeared...
Thank for any hint
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 10:37 am
by kev1n
Hi,
Happy New Year!
If you refresh the form after opening it, is the HK still unavailable?
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 10:40 am
by luca.ongaro
Refreshing the form brings me back to nuuserhome
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 11:14 am
by kev1n
How is the form opened?
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 11:25 am
by luca.ongaro
Clicking on a Run button. The HK is set when the user changes a Input text in nuuserhome.
The form opens initially as browse, then the user can select a record for edit, or add a new record
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 11:55 am
by kev1n
Are you using the onchange or oninput event to set the HK? Try oninput if you haven't already.
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 12:43 pm
by luca.ongaro
I was using onchange, now I added also oninput but still without success. Same with onblur
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 3:56 pm
by luca.ongaro
UPDATE:
If I understand correctly, the global HKs are stored in zzzzsys_session, as sss_hashcookies. Well, my DB has no trace of HKs.
UPDATE #2:
Apparently, no HKs are set anywhere.
My application probably works only because accidentally I gave to my (non-existent) HK the same name of the nuuserhome object.
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 4:29 pm
by kev1n
Are you using the latest nuBuilder?
Re: Global Hash cookie disappears
Posted: Tue Jan 02, 2024 4:51 pm
by luca.ongaro
I am using
DB Version: V.4.5-2023.03.07.00
Files Version: V.4.5-2023.04.08.00