Tuesday April 16, 2024

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


Get SteelArrow!     
  <SAOUTPUT/>    
 
 
 
Return to Tag List
 
The SAOUTPUT tag allows the output of variables, or expressions. These values are wrapped within '#' characters. SAOUTPUT can be used recursively to scope variable output within variable output. The global namespace is checked first, and then the "scoped" namespace.
 
Attributes:
SCOPEvariable scope to apply to "output"
VALUEvariable or expression to ouput
AUTOLOOPvariable or expression to auto-loop over

 
The following is an example of SAOUTPUT;
 
<SASET NAME=var VALUE="Testing 123">
<!--- Simple value output --->
<SAOUTPUT VALUE=var>

<!--- No 'SCOPE=' means global namespace --->
<SAOUTPUT>#var#</SAOUTPUT>

<!--- The next line puts us in 'SESSION' namespace --->
<!--- (The global) #var# will still be resolved --->
<SAOUTPUT SCOPE="SESSION">#userID# #var#

<!--- The next line puts us in 'CGI' namespace --->
<SAOUTPUT SCOPE="CGI">#REMOTE_ADDR#</SAOUTPUT>

<!--- Now we are back in 'SESSION' namespace --->
#time#</SAOUTPUT>


<!--- AUTOLOOP sets the scope and automatically repeats all
      lines of code for each record in the specified object --->
<SAOUTPUT AUTOLOOP=dbQuery>
   <!--- Outputs all 'columName' rows within dbQuery --->
   #columnName#
</SAOUTPUT>





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy