Page 1 of 1

RECORD_ID and record_id

Posted: Tue May 07, 2024 6:36 am
by shuray
Hi!
I found out that in the hash sometimes there are 'RECORD_ID' and 'record_id' variables. What is the differece?

Thx

Re: RECORD_ID and record_id

Posted: Tue May 07, 2024 7:26 am
by kev1n
Hi,

In general, you should use #RECORD_ID# in PHP BS, AS, BE etc. events as well as in Browse SQL. This Hash Cookie will be replaced with the primary key of the record that is being opened in an edit form,

When running a procedure using nuRunPHPHidden() or nuRunPHP(), use the Hash Cookie #record_id#, which will contain the primary key of the record being edited in the form.