The following values return:
columnArray[0] = "EmpID", columnArray[1] = "LastName",¬
columnArray[2] ="startDate", columnArray[3] = "salary"
MMDB.getSPParameters()
Availability
Dreamweaver MX.
Description
This function returns an array of parameter objects for a named procedure.
Arguments
connName, procName
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 procedure.
procName
Returns
An array of parameter objects, each specifying the following set of properties:
Property name
name
datatype
direction
Example
The following example retrieves the parameter objects for the specified procedure and creates
a tooltip for each object using its properties.
var paramNameObjs = MMDB.getSPParameters(connName,procName);
for (i = 0; i < paramNameObjs.length; i++)
{
var paramObj = paramNameObjs[i];
94
The Database API
Description
Name of the parameter (for example,
Datatype of the parameter (for example,
Direction of the parameter:
-The parameter is used for input only.
1
–The parameter is used for output only. In this case, you pass the
2
parameter by reference and the method places a value in it. You
can use the value after the method returns.
– The parameter is used for both input and output.
3
– The parameter holds a return value.
4
)
@@lolimit
)
smallmoney
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?