PROGRAMMING DOMINO FOR WEB APPLICATIONS
The @ClientType function returns "Web" from a browser, "Notes" from a Notes client, and "None" from an agent. Here's an example of a computed text formula:
The @URLOpen function opens the Web page specified by a URL. This example opens lotus.com:
Getting the database name
The following formula gets the name of the current database and adjusts it for use in a URL:
Getting and setting request-header fields
The @GetHTTPHeader function returns the value of an HTTP request-header field. This example returns the value of the Host field:
Getting the URL command
The following formula returns in a text list the URL command responsible for the current page and any parameters:
Manipulating the URL format
@URLDecode and @URLEncode format any special characters in the URL, such as spaces or punctuation, so that the URL can be displayed as readable text or passed to a computer.
The following formula would return the readable text string "
Field validation
@Success and @Failure work in field input validation formulas on the Web. The @Failure path causes the message specified as the parameter to appear on a new page. In the following validation formula, if the user fails to enter a value for RequiredField, the word "Gong" in bold appears on a new page:
In a Web view, @DbCommand with "Domino" as the first parameter pages down and up:
@DbCommand("Domino"; "ViewPreviousPage")
Restricted @functions
The following @functions do not work or are restricted on the Web.