a5w_DeleteFromWebAppRepository Function
Syntax
a5w_DeleteFromWebAppRepository as L (key as C [, pResult = null_value()])
Arguments
- key
Key value to delete.
- pResult
An object that contains the following properites:
- errorText
The error message.
- hasError
A .t./.f. value. If hasError is .t., then an error occured. errorText will contain additional information about the error.
Description
Deletes a key from the web application repository.
Discussion
Deletes a key from the Web Application Repository. The Web Application Repository is a table in a database (SQL or DBF) where the web application can read or write data - such as email templates or saved queries. See Web Application Repository for more information.
Example
? a5w_DeleteFromWebAppRepository("email")
= .T.
? a5w_DeleteFromWebAppRepository("name2",pResult)
= .F.
? pResult
= errorText = Error executing query to delete repository data. The database could not find the data you requested
delete from myrepositorytable where key = :whatKey
<SQLArguments>
<SQLArgument>
<Name>whatkey</Name>
<Data Type="C">name2</Data>
<IsNull Type="L">0</IsNull>
<Usage>Input</Usage>
</SQLArgument>
</SQLArguments>
hasError = .T.See Also