Page 1 of 1
Hash Cookie - Run - Record ID
Posted: Fri Mar 02, 2018 11:08 am
by pierrot
Object(Run)->Record ID = #my_field#
isn't working for me.
Do I need workaround with JavaScript onclick nuForm, or there is a simple way of doing it?
Re: Hash Cookie - Run - Record ID
Posted: Fri Mar 02, 2018 11:46 am
by toms
pierrot,
In the record ID field, you need to enter the primary key of the record.
id_primary_key.png
What exactly are you trying to do ? Are you using nuSetProperty() to set a Hash Cookie (#my_field#) and how/where are you setting it?
Re: Hash Cookie - Run - Record ID
Posted: Fri Mar 02, 2018 12:29 pm
by pierrot
I would like to open Edit Form based on id stored in #my_field#.
Primary key is stored in one of the field puled from database and displayed on Edit Form.
I can use it in Object(Select)->SQL = ...WHERE id=#my_field#
I can't use it in Object(Run)->Record ID = #my_field#
Should I create some temporary Hash Cookie to use it in Run Object?
I remember that in nuBuilder Pro wiki there was table with information about where each Hash Cookie will work. Are there similar restrictions in Forte?
Re: Hash Cookie - Run - Record ID
Posted: Fri Mar 02, 2018 12:34 pm
by admin
pierrot,
I have made a change on Github.
Let me know if it works for you now.
Steven
Re: Hash Cookie - Run - Record ID
Posted: Fri Mar 02, 2018 12:39 pm
by admin
pierrot,
nuHash() will help you find what Hash Cookies are available.
http://wiki.nubuilder.net/nubuilderfort ... PHP#nuHash
Steven
Re: Hash Cookie - Run - Record ID
Posted: Fri Mar 02, 2018 1:21 pm
by pierrot
It works. Thanks Steven for solving my problem.
Re: Hash Cookie - Run - Record ID
Posted: Fri Mar 02, 2018 9:01 pm
by admin
.