Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Hash Cookie - Run - Record ID

Questions related to using nuBuilder Forte.
Locked
pierrot
Posts: 15
Joined: Thu Dec 14, 2017 11:51 am

Hash Cookie - Run - Record ID

Unread post 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?
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Hash Cookie - Run - Record ID

Unread post 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?
You do not have the required permissions to view the files attached to this post.
pierrot
Posts: 15
Joined: Thu Dec 14, 2017 11:51 am

Re: Hash Cookie - Run - Record ID

Unread post 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?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Hash Cookie - Run - Record ID

Unread post by admin »

pierrot,

I have made a change on Github.

Let me know if it works for you now.

Steven
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Hash Cookie - Run - Record ID

Unread post by admin »

pierrot,

nuHash() will help you find what Hash Cookies are available.

http://wiki.nubuilder.net/nubuilderfort ... PHP#nuHash

Steven
pierrot
Posts: 15
Joined: Thu Dec 14, 2017 11:51 am

Re: Hash Cookie - Run - Record ID

Unread post by pierrot »

It works. Thanks Steven for solving my problem.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Hash Cookie - Run - Record ID

Unread post by admin »

.
Locked