Chapter 1 Dynamo Tags


Dynamo tags versus DynaScript

The Dynamo tags described in this chapter provide the functionality that is normally associated with a programming language such as JavaScript or DynaScript. If you are more comfortable with HTML and do not require the flexibility of DynaScript, you can use the Dynamo tags to manipulate your Web site documents. The following table displays the Dynamo tags with their DynaScript equivalent.

Dynamo tag

DynaScript equivalent

COMPONENT

connection/CreateComponent

DATA

query/GetValue()

DOCUMENT

Select properties of the document object

ELSE

else

ELSEIF

if-else

ENDIF

}

EVALUATE

N/A

EXECUTE

system.Exec()

FORMATTING

N/A

IF

if

INCLUDE

output=site.Include(scriptName);
document.WriteLn(output);

LABEL

query/GetColumnLabel()

MAILPIECE

mp = new MailPiece();

SCRIPT

N/A

SQL

connection/CreateQuery()

SQL_ERROR_CODE

query/GetErrorCode()

SQL_ERROR_INFO

query/GetErrorInfo()

SQL_INSERT

N/A

SQL_ON_ERROR

if (SQL.GetErrorCode()!=0) {
...

SQL_ON_NO_ERROR

if (SQL.GetErrorCode()==0) {
...

SQL_ON_ROWS

if (!SQL.GetEmpty()) {
...

SQL_ON_NO_ROWS

if (SQL.GetEmpty()) {
...

SQL_STATE

document.Write(SQL.GetState());

For complete information on DynaScript, see "The DynaScript Language".

 


Copyright © 1999 Sybase, Inc. All rights reserved.