Hash Variables: Difference between revisions
(2 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
Example of using Hash Cookies in PHP. | Example of using Hash Cookies in PHP. | ||
$s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice"; | |||
nuRunQuery($s); | |||
==HTML== | ==HTML== | ||
Line 53: | Line 48: | ||
Any '''Clause''' in the '''Clauses''' Subform in the [[SQL Builder]]. | Any '''Clause''' in the '''Clauses''' Subform in the [[SQL Builder]]. | ||
= '#RECORD_ID#' | |||
==Report Labels== | ==Report Labels== | ||
Line 62: | Line 55: | ||
An example of using Hash Cookies in a Report Label. | An example of using Hash Cookies in a Report Label. | ||
Sales Between #from_date# And #to_date# |
Latest revision as of 08:25, 17 June 2020
There are a number of places Hash Cookies can be used...
In each of these situations, nuBuilder does a search and replace.
With all currently available Hash Cookies and any you use, before it is run.
There are 4 Hash Cookies always available.
- USER_ID
- USER_GROUP_ID
- HOME_ID
- GLOBAL_ACCESS
To find what other Hash Cookies are available for use, you can run nuHash() inside your code.
PHP
Hash Cookies allow you to customise your PHP code.
Example of using Hash Cookies in PHP.
$s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice"; nuRunQuery($s);
HTML
Hash Cookies allow you to customise your HTML Objects.
The Hash Cookies available to HTML Objects are the same as those available on Before Edit.
Example of using Hash Cookies in HTML.
<iframe width="560" height="315" src="#cus_youtube#" frameborder="0" allowfullscreen> </iframe>
Custom SQL
All Custom SQL used in nuBuilder Forte.
CREATE TABLE #TABLE_ID# SELECT * FROM customer;
SQL Builder
Any Clause in the Clauses Subform in the SQL Builder.
= '#RECORD_ID#'
Report Labels
Using Hash Cookies allows you to have changing titles on Report Labels.
An example of using Hash Cookies in a Report Label.
Sales Between #from_date# And #to_date#