a5w_SaveToWebAppRepository Function
Syntax
Arguments
- keyCharacter
Key value of the data you are saving. This is how data is retrieved from the repository. Must be a unique value. Limit 100 characters.
- DataCharacter
The data to save in the repository. Must be character data. No length limit
- objectTypeCharacter
(optional) A description of the type of data; the description can be determined by the user. Limit 40 characters.
- componentGuidCharacter
(optional) The GUID of the component from where the data was saved. Limit 40 characters.
- userIdCharacter
(optional) The userId of the user who saved the data in the repository. Limit 40 characters.
- securityGroupsCharacter
(optional) The security groups that are allowed to retrieve the data.
- pResultInPointer
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
Used in a Web application to save data to the Web Application Repository.
Discussion
Used in a Web application to save data to the Web Application Repository. Returns .t. if the data was saved, or .f. if it was not saved. 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