Chapter 1 Overview
1.1. Domino URL command syntax
Http: // host/dominoobject? Action & arguments
HOST: DNS or IP
Dominoobject: A domino structure (object) such as view, form, page, proxy, folder, and navigator.
Action: operations performed on the specified dominoobject, such as Openview, opendatebase, OpenForm, opendocument, createdocument, and login.
Arguments: Specifies the condition for the operation, for example, Count = 10.
1.2. Syntax Guide
Domino URLs are identified by host names instead of server names.
1. Open the server document. In the HTTP tag of the Internet protocol, you can specify the maximum allowed length of the URL Command, or set other restrictions here.
2. The Domino URL Command contains the following special identifiers: $ defaultview, $ defaform form, $ searchform, $ file, $ icon, $ help, $ about, and $ first.
3. dominoobject can be any of the following forms: for database objects, use the database name or copy ID (replica ID); for other objects, use the object name universal ID or special identifier. If you use a URL to specify a view, you can use the view name, the view's universal ID or $ defaultview.
4. The Notes database can be specified by the file name, such as leads. nsf. You can also add two underscores (_ 852562f3007abfd6. nsf) before the copy ID (replica ID) of the database, which is specified with the. nsf suffix.
5. Among all copies of the database, the Domino Object Name is equivalent to the universal ID. A name or alias can point to two objects. For example, two forms with the same name, one of which is hidden from the Notes user and the other is hidden from the Web user.
6. action can be explicitly or implicitly specified. Explicit mode such? Opendatabase ,? OpenView ,? OpenForm ,? OpenDocument and? Editdocument. While the implicit mode is? Open ,? Edit, and? Delete. If no operation is specified, the default value of Domino is? Open.
7. If user authentication is required, you can add the login parameter after any domino URL.
8. Because the URL cannot contain spaces, + or hexadecimal value % 20 can be used to replace spaces, such as: http://cyb.com/discussion.nsf/By+Author http://cyb.com/discussion.nsf/By%20Author.
9. If the name or parameter contains characters that do not conform to the URL syntax or conflict with the URL syntax, such as the plus sign (+), slash (/,/), and connector, use % XX (XX is a hexadecimal ASCII code) instead. For example, open a document with a keyword containing "Smith & Jones, Inc.", as follows: http://cyb.com/leads.nsf/By%20Company/Smith%26Jones,%20Inc .? OpenDocument
10 use & symbol to separate parameters, such as: http://cyb.com/leads.nsf/By+Salesperson? OpenView & expandview
11. Separate hierarchical names with a slash (/), for example, in a specified database (discussion. NSF), view named docs/By Author: When the http://cyb.com/discussion.nsf/Docs/By+Author generates its own URL in any part of the application, if an unsupported character is used in a simple alias, generally, this URL is not valid.
12. The URL Command can also point to a database with the. nsf4 or. Box extension and a template file (. ntf), but these databases can only be opened in preview mode.
13. In database properties, select "Web Access: use JavaScript when producing pages". When calculating URLs, click events for buttons and hot spot production are selected. If this option is not selected, additional URL buttons and hotspots are calculated when the page is generated. This option is useful if you can edit fields in a form.
Chapter 2 servers, databases, and views
The following commands access the server, database, view, "about Database" document, help document, and database icon. To access the database through the URL Command, the database must be in the Notes/data directory or the subdirectory of the Notes/data directory. What is the server command? Login ,? Logout and? Except for rediect. When Domino is run with Microsoft Internet Information Server, if the syntax of the server command requires a database, you can use a database name that does not exist. If the database referenced in the server command does not exist, the command is ignored. Use? Redirect is used to redirect document links of other servers to hide design elements while hiding them from the server. Documents hidden in the view cannot be accessed through the domino URL Command.
If the database attribute "prohibit URL opening" is set, the URL Command will be disabled.
2.1. Redirect
Eg.
Http: // server/dummy. nsf? Redirect & name = notesserver & id = repid & to = encodedurl
Resolution:
Http: // The server points to the web server that generates the URL.
Name= Notesserver specifies the domiao server name in common or simple form. This parameter is optional when "set by Database" is available.
ID= Repid indicates the copy ID (replica ID) of the database to be located, which is an optional parameter.
To= Encodedurl specifies the Redirection URL.
2.2. opendatabase
2.3. OpenView
2.3.1. Optional OpenView Parameters
Add an optional parameter to improve the URL. Use any of the following parameters to obtain the expected results, unless other information is specified. Collapse = n where N is the number of collapsed rows in the hierarchical view. This parameter cannot be used together with expandview or colapseview.
Collapseview collapsed display view
Count = n where N is the number of rows to be displayed
Expand = n where N is the number of rows expanded in the hierarchical view. This parameter cannot be used together with expandview or colapseview.
Expandview display
Restricttocategory = Category: Set the category to "show single category", where "category" is the category displayed in the view.
Start = n where N is the number of start rows when the view is displayed. In the hierarchy view, the number of rows will contain sub-indexes (for example, start = 3.5.1 means 3rd documents under 5th sub-titles under 1st topics)
Startkey = string where string is the keyword of a document in the view. The view is displayed from this document.
2.4. readviewentries
Use this command to access View data in XML format, excluding appearance attributes such as fonts, column delimiters, data formats, HTML settings, view templates, and frame redirection.
2.4.1. Optional parameters of readviewentries
Add an optional parameter to modify the URL. Use any of the following parameters to obtain the expected results, unless otherwise specified.
Collapse = n where N is the number of collapsed rows in the hierarchical view. This parameter cannot be used together with expandview or colapseview.
Collapseview collapsed display view
Count = n where N is the number of rows to be displayed
Expand = n where N is the number of rows expanded in the hierarchical view. This parameter cannot be used together with expandview or colapseview.
Expandview display
Keytype = text | time specifies the startkey type. If this parameter is not specified, text is used by default. Set keytype to time. The time value can be used as the display range of the View data, starting from the startkey row until the row specified by untilkey. If & keytype = Time is specified, & startkey and & untilkey may be ISO Date and Time values. For example, you can use 20020101t140000 and 00Z to indicate the Coordinated Universal Time (UTC) or the Eastern Standard Time of GMT, or use 20020101t090000, 00-05 to specify the same date and time plus the local time offset.
Preformat causes all types on the server to be converted to the text format. The text list, numbers, dates, and numbers are converted to text before being sent. The server region settings are used in all formats. If this parameter is not specified, the XML output stream contains structured information with uncertain region formats. Resortascending = column number resortdecending = column number is the sequence number starting with 0 in the view. This parameter is used to set to sort specified columns in ascending or descending order of letters.
Restricttocategory = Category: Set the category to "show single category", where "category" is the category displayed in the view.
Start = n where N is the number of start rows when the view is displayed. In the hierarchy view, the number of rows will contain sub-indexes (for example, start = 3.5.1 means 3rd documents under 5th sub-titles under 1st topics)
Startkey = string is a keyword of the document in the sorting view. The view is displayed from this document. If no document matching the startkey parameter is found, the next document is returned. Therefore, if the value of startkey is "A" but the corresponding document is not found, startkey returns the document starting with "B.
Untilkey = string untilkey can only be used with the startkey parameter. Set the object range of the view in the view, starting from the key of the document keyword value startkey until untilkey. For example, & startkey = A & untilkey = B indicates all entities starting from. The & COUNT keyword specifies the minimum display range regardless of the returned object range.
2.5. openabout
Use the openabout command to access the "about this database" Document of the database.
Http: // host/database/$ about? Openabout
2.6. openhelp
Http: // host/database/$ help? Openhelp
2.7. openicon
Http: // host/database/$ icon? Openicon
Chapter 3 Frame Structure
3.1. openframeset
Http: // host/database/framesetname? Openframeset http: // host/database/framesetunid? Openframeset
Chapter 4 proxy, form, and Navigator
Run the following command to open the proxy, form, and navigator in the database. Hide design elements and hide them on servers. You cannot access the document of a hidden form through the domino URL Command.4.1. openagent
Http: // host/database/agentname? Openagent
4.2. OpenForm
Http: // host/database/formname? OpenForm http: // host/database/formuniversalid? OpenForm http: // host/database/$ defaultform? OpenForm
4.2.1. Optional parameters of OpenForm
Parentunid = uniqueidnumber where: uniqueidnumber is the parent document ID of the current document. It is used only when "formula inherits the value in the selected document" is set in the reply form or form attribute. ☆Syntax http: // host/database/formuniversalid? OpenForm & parentunid
Eg.
Http://cyb.com/products.nsf/40aa91d55cle4c8285256363004dc9e0? OpenForm & parentunid = 6bc72a92613fd6bf852563de001f1a25
4.3. opennavigator
☆Syntax http: // host/database/navigatorname? Opennavigator http: // host/database/navigatoruniversalid? Opennavigator http: // host/database/$ defananav? Opennavigator $ defananav open the folder Panel of the database★Sample http://cyb.com/products.nsf/Main+Navigator? Open navigator http://cyb.com/products.nsf/7B5BC17C7DC9EB7E85256207004F8862? Opennavigator http://cyb.com/products.nsf/?defananav? Opennavigator
4.4. readform
When you use the readform command to open a form, all editable fields are not displayed. It is useful when you need to display a form on a simple page. ☆Syntax http: // host/database/formname? Readform http: // host/database/formuniversalid? Readform http: // host/database/$ defaultform? Readform★Sample http://cyb.com/home.nsf/Welcome? Readform http://cyb.com/products.nsf/625E6111C597A11B852563DD00724CC2? Readform http://cyb.com/products.nsf/$defaform? Readform
Chapter 5 open resources
The following Domino commands open resources in an NSF application, allow the imported design elements, save and release various files, when the web application and the WebDAV is used to design the application, it is widely used. For more information, see "sharing non-nsf files ".
5.1. openimageresource
☆Syntax http: // host/database/imageresourcename? Openimageresource where: imageresourcename is the name of the image file to be accessed.★Sample http://cyb.com/leads.nsf/TopHeader.gif? Openimageresource
5.2. openfileresource
Open a file resource in the application. ☆syntax http: // host/database/fileresourcename? Openfileresource: name of the file to be accessed by fileresourcename.★Sample http://cyb.com/leads.nsf/JSLibrary.js? Openfileresource
Chapter 6 add, delete, edit, open, and save documents
Run the following command to operate on a document in a database. Hide design elements and hide them on servers. The document hidden in the view cannot be accessed through the domino URL Command.
6.1. createdocument
Use the createdocument command when submitting HTML forms in post mode. When a user submits a form, Domino obtains the data entered in the form and creates a document. ☆syntax http: // host/database/form? Createdocument http: // host/database/formname? Createdocument: the name of the form being accessed by formname.★Sample http://cyb.com/products.nsf/b9815a87b36a85d9852563df004a9533? Createdocu ment http://cyb.com/products.nsf/basketballs? Createdocument
6.2. deletedocument☆Syntax http: // host/database/View/document? Deletedocument★Sample http://cyb.com/products.nsf/By+Part+Number/PC156? Deletedocument
6.3. editdocument☆Syntax http: // host/database/View/document? Editdocument★Sample http://cyb.com/products.nsf/By+Part+Number/PC156? Editdocument when a Web user accesses a document as an editor, the hidden text contained in the RTF domain is displayed.
6.4. opendocument
☆Syntax http: // host/database/View/document? OpenDocument: document is the content of the first sorting column in the specified view in any form of documentkey. The first document in the documentuniversalid $ first view.★Sample http://cyb.com/products.nsf/By+Part+Number/PC156? OpenDocument http://cyb.com/leads.nsf/By+Rep/35AE8FBFA573336A852563D100741784? OpenDocument
6.5. savedocumentThe savedocument command is used when the document being edited is submitted in post mode. Domino updates the document content based on the new data entered in the form. ☆Syntax http: // host/database/View/document? Savedocument★Sample http://cyb.com/products.nsf/a0cefa69d38ad9ed8525631b006582d0/4c95c7c6700160e2852563df0078cfeb? Savedocument