Hash Variables: Difference between revisions

From nuBuilderForte
Jump to navigation Jump to search
No edit summary
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
There are 3 places Hash Variables can be used..


There are a number of places Hash Cookies can be used...


*'''PHP'''
::Hash Variables allow you to customise your PHP code.


::Before running any custom PHP code, nuBuilder does a search and replace with all currently available Hash Variables and any used in your code.
In each of these situations, nuBuilder does a search and replace.


::To find what Hash Variables are available you can use [[PHP#nuHash|nuHash()]].
With all currently available Hash Cookies and any you use, before it is run.


::Example of using Hash Variables in PHP.
There are 4 Hash Cookies always available.
<source lang="php">
#USER_ID
#USER_GROUP_ID
#HOME_ID
#GLOBAL_ACCESS


$s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice";


nuRunQuery($s);
To find what other Hash Cookies are available for use, you can run [[PHP#nuHash|nuHash()]] inside your code.


</source>


==PHP==
Hash Cookies allow you to customise your [[Procedures|PHP code]].


*'''HTML'''
Example of using Hash Cookies in PHP.


::Hash Variables allow you to customise your HTML Objects.
  $s = "CREATE TABLE #TABLE_ID# SELECT * FROM invoice";
  nuRunQuery($s);


::The Hash Variables available to HTML Objects are the same as those available on '''Before Edit'''.
==HTML==
Hash Cookies allow you to customise your HTML [[Objects]].


::Example of using Hash Variables in HTML.
The Hash Cookies available to HTML Objects are the same as those available on '''Before Edit'''.
<source lang="html">


<iframe
Example of using Hash Cookies in HTML.
  width="560"
  height="315"
  src="#cus_youtube#"
  frameborder="0" allowfullscreen>
</iframe>


</source>


  <iframe
      width="560"
      height="315"
      src="#cus_youtube#"
      frameborder="0" allowfullscreen>
    </iframe>


*'''Report Labels'''
==Custom SQL==
All Custom SQL used in nuBuilder Forte.


::Using Hash Variables allows you to have changing titles on [[Report_Designer#Object_Properties|Report Labels]].
  CREATE TABLE #TABLE_ID# SELECT * FROM customer;


::Example of using Hash Variables in a Report Label.
==SQL Builder==
<source lang="html">
Any '''Clause''' in the '''Clauses''' Subform in the [[SQL Builder]].


Sales Between #from_date# And #to_date#
    = '#RECORD_ID#'


</source>
==Report Labels==
 
Using Hash Cookies allows you to have changing titles on [[Report_Designer#Object_Properties|Report Labels]].
 
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.

  1. USER_ID
  2. USER_GROUP_ID
  3. HOME_ID
  4. 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#