Introduction to the domino built-in domain and CGI variables (

Source: Internet
Author: User
Tags in domain
Address: http://space.itpub.net/14751907/viewspace-438869
The reserved domain is used to implement functions that can only be implemented by self-programming. Notes uses the "$" symbol to identify the entries created by the system.
1. $ keepprivate: for example, when you create a document using the form "prohibit printing, forwarding, and copying to clipboard", notes automatically generates a domain named $ keepprivate for the document, assign this value to 1. You can control this value by compiling it to determine whether the content of a document can be copied to the clipboard.
2. $ papercolor indicates the background color of the form. In the form design, select "allow users to set form attributes" to change the background color of the form. This field is generated after the document is saved, it is a data Font Field ranging from 0 to 239. In Program You can change this value to control the document background color.
3. $ ref. Each sub-document contains this field. Its value is the unique identifier of the parent document.
4. saveoptions. If the value is 0, the document is not saved. The default value is 1.
5. mailoptions. If it is 1, the document will be mailed when it is closed. The default value is 0.
6. $ publicaccess. This field is included in the document. This field indicates that the file can be publicly accessed.
7. $ anonymous indicates that this document is an anonymous document created by an anonymous form.
8. $ WebClient is automatically included in @ userroles if it is a Web browser user
9. $ v2attachmentoptions if this value is set to 0, the attachments in the form can be hidden.
10. $ readers if the reader permission of the form is set, this field will appear in the document.
11. $ file if the document contains an attachment, this domain will appear. The RTF contains the attachment and will not appear.
12. $ updatedby. Each document contains the username or server name associated with each document editing session. Storing the complete editing history takes up disk space and slows down the update and replication of views. To save disk space and improve database performance, specify the number of items that can be included in the $ updatedby field by using the limit $ updatedby field input in the "advanced" tab of the database attribute. When the number of projects in the $ updatedby field reaches this limit, the oldest project will be deleted to free up space for the latest project.
13. $ revisions each document contains a domain that stores the date and time of each document editing session. When two users simultaneously edit the same document in a duplicate or edit the same document in different copies of each other, Domino uses this domain to resolve the copy or save conflicts.
14. Sign the Creator to prevent tampering.
15. Encrypt encrypted mail.
16. sendto send the email to the users listed in this domain.
17. copyto send a copy of the email to the users listed in this domain.
18. bindcopyto send a hidden copy of the email to the users listed in this domain.
19. deliverypriority mails with high, medium, and low priority.
20. deliveryreport: A report is returned when an email is sent to the recipient.
21. returnreceept: a receipt is returned when the recipient reads the email.
22. mailformat mail via CC: mailtm.

Reserved domain of embedded Elements
23. $ viewbody contains an embedded view.
24. $ viewlist contains the embedded folder pane.
25. $ navigatorbody contains the embedded navigator.
26. $ groupschedulerefreshmodeIncludes refresh embedded group schedule control values.
27. $ groupscheduleshowlegend 0 indicates that color legends should not be displayed, and 1 indicates display. Default Value: 1.

Reserved domain for the accounting program
28. $ chargeread create an accounting record when you open a document containing this domain
29. $ chargewrite creates an accounting record when you create, copy, edit, or save a document that contains this domain.

General reserved domain
30. categories category document.
31. $ versionopt control document version tracking.
32. Put the new document in the folder in folderoptions.
33. Secret encryptionkeys uses secret keys to encrypt documents, rather than public keys.
34. html directly transmits HTML to the server.
35. $ htmlhead transmits the HTML information that resides in the document tag.
36. $ return after a Web user submits a document, Domino uses the default confirmation message "form handled" to reply. To reset the default response, you can add a calculated text field named $ return to the form and use HTML as the calculated value to create a custom confirmation.
37. $ title if the form is stored in the document, the form name is stored in this domain.

CGI (Public Gateway Interface) is the standard for connecting external applications to HTTP servers. When a Web user saves a document or opens an existing document, the Domino web server uses CGI variables to collect information about the user, including the user name, browser, and Internet Protocol (IP) address of the user.
The documentcontext attribute of the notessession object returns the CGI variable value captured by Domino, and documentconext returns a notesdocument object. The entry name in this document is the same as the CGI variable name.
Dim session as new notessession
Dim doc as notesdocument
Set Doc = session. documentcontext
MessageBox Doc. http_user_agent (0)
CGI variable
Domain Name return
If the server supports user authentication and script. is protected, auth_type is used to verify the user's specific protocol.
The length of content_length, which is the same as that given by the client.
Content_type: For queries with additional information, such as http post and put, this is the data content type.
The CGI standard version that the gateway_interface server complies.
The MIME type accepted by the http_accept client, which is specified by the HTTP header.
The language accepted by the http_accept_language client, which is specified by the HTTP header.
The URL of the page frequently accessed by http_referer users.
HTTPS indicates whether the SSL mode is enabled on the server.
Https_client_cert_common_name X.509 Public name on the verification word
Https_client_cert_issuer_common_name X.509 issuer of the verification word
Https_keysize the session key during the SSL session. For example: 40-bit and 128-bit.
The path_translated server provides the translation version of path_info. It obtains the path and can map it from the virtual address to the physical address.
QUERY_STRING? Or, in some cases, the URL that references this script. is located in! .
Query_string_decoded returns the same value as QUERY_STRING, but decodes the string. For example, if the URL references a view name that contains characters not allowed to appear in the URL, the name will be encoded. This CGI variable decodes the string. Path_info_decoded is only available for Domino applications.
The IP address of the remote host that remote_addr sends the request.
The name of the host that remote_host sends the request.
Remote_ident this variable is set to the remote user name extracted from the server. Use this variable only when logging on.
Remote_user returns the authentication method of the verified user name.
Request_content is only supported by the proxy. Contains data sent using an http post request. This data is often "URL encoded" and consists of name = value pairs connected. Example: firstname = John & lastname = doe
Request_method is used to send a request. For HTTP, such as "get", "head", and "Post.
The virtual path from script_name to the executed script. Used for the Self-referenced URL.
The host name, DNS alias, or IP address of the SERVER_NAME server appears in the Self-referenced URL.
Name and revision of the Information Protocol that occurs simultaneously with the request.
The port on which server_port sends the request.
Server_software: Name and version of the information server software that runs the CGI program.
The version of the CGI specification that the server_url_gateway_interface server complies.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.