URL commands for creating, deleting, editing, opening, and saving documents

The following commands manipulate documents in a database. Hidden design elements are hidden from the server too; you can't use Domino® URL commands to access documents in hidden views.

Note: The URLs shown are for example only. They do not point to existing Web sites.

CreateDocument

The CreateDocument command is used as the POST action of an HTML form. When the 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

Where:

FormName is the name of the form being accessed.

Examples

http://www.lotus-10.com/products.nsf/b9815a87b36a85d9852563df004a9533?CreateDocument

http://www.lotus-10.com/products.nsf/basketballs?CreateDocument

DeleteDocument

Syntax

http://Host/Database/View/Document?DeleteDocument

Example

http://www.lotus-10.com/products.nsf/By+Part+Number/PC156?DeleteDocument

EditDocument

Syntax

http://Host/Database/View/Document?EditDocument

Example

http://www.lotus-10.com/products.nsf/By+Part+Number/PC156?EditDocument

Note: Rich text fields containing hidden text will be visible to Web users with Editor access to documents.
Note: The following items may be lost or corrupted if they are in a rich text field which is edited with a Web browser using Domino® Web Server:
  • embedded images -- may be visible when editing, but will be lost when the document is saved;
  • tab tables -- only the visible row will be saved;
  • "hide when" paragraphs which are hidden from the Web -- the entire paragraph will be lost when the document is saved.

Avoid using these items in a rich text field if that field is to be edited with a Web browser.

OpenDocument

Syntax

http://Host/Database/View/Document?OpenDocument

Where:

Document is any of the following:

  • DocumentKey -- the contents of the first sorted column in the specified view.
  • DocumentUniversalID

$first

The first document in the view.

Examples

http://www.lotus-10.com/products.nsf/By+Part+Number/PC156?OpenDocument

http://www.lotus-10.com/leads.nsf/By+Rep/35AE8FBFA573336A852563D100741784?OpenDocument

SaveDocument

The SaveDocument command is used as the POST action of a document being edited. Domino® updates the document with the new data entered in the form.

Syntax

http://Host/Database/View/Document?SaveDocument

Example

http://www.lotus-10.com/products.nsf/a0cefa69d38ad9ed8525631b006582d0/4c95c7c6700160e2852563df0078cfeb?SaveDocument