Repost - Show rtf field in Table on Web

Hi, Just re-posting this as I’m a bit stuck.

What is the syntax to display an rtf field within a

tag please …?

I am having severe brain block …!!

Simple when added to a link but I want it to be populated when page opens.

I’m presuming a computed rtf field would do the trick but I can get it to work. Have added url with ?OpenDocument but it doesn’t seem to work.

Any help gratefuly received.

Thanks

Andy

Subject: Repost - Show rtf field in Table on Web

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.

Onward …

Thanks all for your help thus far …

Cheers

Subject: Repost - Show rtf field in Table on Web

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:

@If(@IsDocBeingEdited | @IsNewDoc; “RegularOldForm”; “PrettyReadingForm”)

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.

Hence I was trying to put together something like ‘http://server/database/view/key?OpenDocument’.

So I’m presuming I need either an anchor or href or something to trigger that.

Am I barking up completely the wrong tree…??

I don’t have alot of web development experience but am in at the deep end currently …!! and am managing to stay afloat mostly …!!

Many thanks in advance for any help and advice.

Cheers

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.

cheers

Andy

Subject: you can use this undocumented command

Subject: Here you go…

Can’t believe a company blocks my blog :wink:

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.

Subject: RE: Here you go…

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: Here you go…

the only reason I didn’t post first time round was I was on my phone travelling, and remote connected, so easiest way to post was the URL.

I don’t mind linking to blogs etc. but typically post the key contents too, just this case the connection was very iffy.

Subject: RE: Here you go…

Hi Carl, This look perfect so many thanks.

Do you know if this works as a default value in another field … ?

I got round my issue with a dblookup but that seems to disable doclinks when viewed.

regards

Andy

Subject: RE: you can use this undocumented command

Hi Carl, Could you post this command in here please as I can’t access that in the office. It is blocked here.

Thanks

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.)