Hi folks,
I’m an optimist. This is usually a good thing, but it means that every now and then my fervent hopes are dashed by reality. This is one such occasion…
I wanted to use Rich Text Lite fields to allow my users to attach a picture file into a form without having to know how to attach an object. They look very good, and work very well in the notes client. Thumbs up there!
However, I thought I would do some further stuff with LotusScript, and here’s what I found out. When you get a handle to the document, or the rich text item in a variant, you will find the following little quirks:
For embedded objects in a rich text lite field - doc.HasEmbedded=False, believe it or not. doc.EmbeddedObjects is nothing, which I guess makes sense given the above. item.EmbeddedObjects is nothing. Nothing! You’re kidding, right?
If you embed the same file into a rich text field, you get doc.HasEmbedded=True, and the EmbeddedObjects arrays in both the document and the field are as they should be.
Is this a bug, or should I just give up and return to my old cynical belief that embedded objects are evil and will never be any use at all?
Speaking of which, another thing I would like to do here is open the object with a URL. Sounds easy enough, right? Wrong! You need to know the fieldOffset part of the URL, which is of course a ridiculously obscure property that is highly shrouded in mystery and to the best of my knowledge, impossible to find out without resorting to arcane arts and demon worship. Bummer!
In any case, I’ll take any friendly suggestions offered, and I promise to stay optimistic about the URL syntax being a bit more useful in the next version of Domino.
-Brendan