a5w_GetFromWebAppRepository Function

Syntax

C Result = a5w_GetFromWebAppRepository(C key [,* pResult ])

Arguments

key

Key value of the data you are retrieving.

pResult

An object that contains the following properties:

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

Used in a Web application to read data to the Web Application Repository.

Discussion

Used in a Web application to retrieve data 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_SaveToWebAppRepository("name","Jane Smith")
= .T.

dim pResult as p
? a5w_GetFromWebAppRepository("name", pResult)
= "Jane Smith"

? pResult
= errorText = ""
hasError = .F.

See Also