A very useful undocumented Domino URL command
Category Domino URL OpenField
The other day in the IBM Business Partner Forum (I checked the permission's it said this could be published), someone casually mentioned that there is an undocumented URL command "?OpenField".
What this URL command does, is return the HTML rendering of a specified Rich Text Field, with no head, no body tag etc. So for example, if you were take one of the blog entries here, which are stored in a Domino database, the Rich Text I write is stored in a Rich Text Field "EntryRICH" so if I wanted just the HTML from that field for a blog entry last week, I would enter something like:
http://www.iminstant.com/iminstant/iminstant.nsf/d6plinks/CTYR-7GZK8S/EntryRICH?OpenField
Where the format is:
Server/databasefolder/databasename/view/LookupKey/RTFFieldName?OpenField.
Why is this helpful, well I think there are a number of opportunities this provides, one is to extract out RTFs as HTML programmatically very easily, without having any LotusScript or Domino knowledge. It makes retrieving information from RTFs to use with AJAX very easy. I;m just getting my head around this Command, but I think it's one we'll see people use more and more.
The other day in the IBM Business Partner Forum (I checked the permission's it said this could be published), someone casually mentioned that there is an undocumented URL command "?OpenField".
What this URL command does, is return the HTML rendering of a specified Rich Text Field, with no head, no body tag etc. So for example, if you were take one of the blog entries here, which are stored in a Domino database, the Rich Text I write is stored in a Rich Text Field "EntryRICH" so if I wanted just the HTML from that field for a blog entry last week, I would enter something like:
http://www.iminstant.com/iminstant/iminstant.nsf/d6plinks/CTYR-7GZK8S/EntryRICH?OpenField
Where the format is:
Server/databasefolder/databasename/view/LookupKey/RTFFieldName?OpenField.
Why is this helpful, well I think there are a number of opportunities this provides, one is to extract out RTFs as HTML programmatically very easily, without having any LotusScript or Domino knowledge. It makes retrieving information from RTFs to use with AJAX very easy. I;m just getting my head around this Command, but I think it's one we'll see people use more and more.
Comments
That is just SO timely you would not believe it! Thanks to you and the "casual mentioner" A+, gold star to you both!
Posted by Steve McDonagh At 05:16:29 PM On 08/03/2008 | - Website - |
Big Thanks You
Posted by Axel At 04:42:12 AM On 08/04/2008 | - Website - |
Posted by rob axelrod At 11:26:11 AM On 08/04/2008 | - Website - |
FSCK ME! I've wanted this exact syntax for at least 5 years. The amount of work I've had to do to get this functionality is just plain sick.
Posted by Andrew Pollack At 08:37:54 PM On 09/23/2008 | - Website - |
Posted by Mark Demicoli At 06:03:53 AM On 09/30/2008 | - Website - |
I have used this method in a RT field to extract the content through ajax and everything was working fine until I entered the following character (as a part of german content) in my RT field.
ü
After saving a document that contains the above character in its RT field, when I try to get the field's HTML through ajax it is showing "not well formed" error in Firefox with � is being shown instead of ü
Any idea about this issue?
Posted by Jayaprakash At 05:54:35 AM On 05/18/2010 | - Website - |
Posted by juan At 09:57:53 AM On 08/23/2010 | - Website - |
One of the most common things users ask for in Notes/Domino applications is a preview-function. Using this technique will make that so much easier.
Posted by Ken Haggman At 08:19:40 AM On 11/16/2010 | - Website - |
Posted by Phil Jones At 11:54:49 AM On 02/13/2013 | - Website - |