Have got it working to some extent now using a computed rich text field, using a dblookup to the document I want. Works a treat for url links in the document but links to other documents in the database don’t seem to work.
Why wouldn’t you simply place the actual field inside the tags? There’s something about this whole deal that I’m simply not getting – you seem to be trying to do things in the most difficult way possible. Just open the document you want to read. If you need an alternate form to do so, then use a form formula:
Subject: RE: Repost - Show rtf field in Table on Web
Hi Stan, Maybe I didn’t explain it very well.
When my home page, html table with various rows, cells etc … opens, I want one of those table cells to contain the contents of the rich text field from a particular document in the database.
Creating a link to click which opens the document is simple but I don’t want that. Basically want it opened without clicking anything as page loads.
Subject: RE: Repost - Show rtf field in Table on Web
Barking, yeah, but I don’t know about trees. Open the document in an iframe with a limited form (just the fields you want). Or take a look at the blog template. In general terms, I don’t like to use rich text on the web – the users (content creators) have too much control and are likely to blow your design up whenever they get a chance. (There are people out there who think that shocking pink bold Comic Sans looks nice.)
Subject: RE: Repost - Show rtf field in Table on Web
Hi Stan, Thanks for the reply.
If I wanted to see if it works, what is the syntax for pulling in the rtf field … ? That will please users for now to see it doing something, even if it isn’t all working …!!
Where do I find the blog template… ?
We are using V6.5 currently so are iFrames available in that version … ? Not used them before even though I have used V8 and 8.5 previously.
I did try building html table and pulling in text via dblookups but links won’t always be to websites, there will be doclinks too so that won’t work.
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.
That’s truly cool. And thanks for posting it here anyway, Carl – I like keeping the main body of knowledge in one place as much as possible (though I do like the idea of linking to blogs, OpenNTF.org, and so on as well – there’s no reason why competent professionals shouldn’t make their “brand” bigger whenever they can).
Subject: RE: Repost - Show rtf field in Table on Web
There is no syntax for “pulling in the RT field”. You create an alternate form, use a form formula in a view, and open the document. The src attribute of the iframe is the URL of the document you want to display.
The blog template has been a standard part of the server distribution since at least 7.0.2. (There’s not much point in blogging locally, so it’s not included with the client install.)