Adobe 38040334 - Dreamweaver CS3 User Manual page 73

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is a connection name that is specified in the Connection Manager. It identifies
connName
the connection string that Dreamweaver should use to make a database connection to a live data source.
Returns
An array of view objects where each object has three properties:
to restrict or filter the number of views that pertain to an individual schema name or catalog name that is
schema
defined as part of the connection information.
Example
The following example returns the views for a given connection value,
var viewObjects = MMDB.getViews(CONN
for (i = 0; i < viewObjects.length; i++)
{
thisView = viewObjects[i]
thisSchema = Trim(thisView.schema)
if (thisSchema.length == 0)
{
thisSchema = Trim(thisView.catalog)
}
if (thisSchema.length > 0)
{
thisSchema += "."
}
views.push(String(thisSchema + thisView.view))
}
MMDB.showResultset()
Availability
Dreamweaver UltraDev 1.
Description
This function displays a dialog box that contains the results of executing the specified SQL statement.The dialog box
displays a tabular grid in which the header provides column information that describes the result set. If the
connection string or the SQL statement is invalid, an error appears. This function validates the SQL statement.
Arguments
connName, SQLstatement
• The
argument is a connection name that is specified in the Connection Manager. It identifies
connName
the connection string that Dreamweaver should use to make a database connection to a live data source.
• The
argument is the SQL
SQLstatement
Returns
Nothing. This function returns an error if the SQL statement or the connection string is invalid.
Example
The following code displays the results of the executed SQL statement:
MMDB.showResultset("EmpDB","Select EmpName,EmpFirstName,Age ¬
from Employees")
catalog
_
LIST.getValue())
statement.
SELECT
,
, and
. Use
schema
view
:
CONN_LIST.getValue()
DREAMWEAVER CS3
68
API Reference
or
catalog

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents