MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 99

Dreamweaver api reference
Table of Contents

Advertisement

MMDB.showSPResultset("EmpDB", "getNewEmployeesMakingAtLeast", ¬
paramValueArray)
MMDB.showSPResultsetNamedParams()
Availability
Dreamweaver UltraDev 1.
Description
This function displays a dialog box that contains the result set of the specified stored
procedure. 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 stored procedure is
invalid, an error appears. This function validates the stored procedure. This function differs
from the
MMDB.showSPResultset()
by name instead of the order in which the stored procedure expects them.
Arguments
connName, procName, paramNameArray, paramValuesArray
The
argument is a connection name that is specified in the Connection
connName
Manager. It identifies the connection string that Dreamweaver should use to make a
database connection to a live data source.
The
argument is the name of the stored procedure that returns the result set
procName
when it executes.
The
paramNameArray
can use the
MMDB.getSPParamsAsString()
stored procedure.
The
paramValuesArray
test values.
Returns
This function returns an error if the SQL statement or the connection string is invalid;
otherwise, it returns nothing.
Example
The following code displays the results of the executed stored procedure:
var paramNameArray = new Array("startDate", "salary")
var paramValueArray = new Array("2/1/2000", "50000")
MMDB.showSPResultsetNamedParams("EmpDB","getNewEmployees¬
MakingAtLeast", paramNameArray, paramValueArray)
function because you can specify the parameter values
argument is an array that contains a list of parameter names. You
argument is an array that contains a list of design-time parameter
function to get the parameters of the
Database access functions
99

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents