AppendRTItem - Method Not Available - Bug

We can’t append a rich text item within a rich text item with BeginInsert. We can append a rti at the end of an rti.

Will this be fixed?

Or if we could create a hotspot action via script I wouldn’t need it.

Any suggestions or comments?

Subject: AppendRTItem - Method Not Available - Bug

Before calling it a bug, why not post the code you are trying here so people can see what you are trying to do?

Subject: RE: AppendRTItem - Method Not Available - Bug

Below is a good example of the problem this is not my code but its simplifed for easy understanding. It is the same problem as I am having. You can not append/insert a RT item into another as the method Usage section in the Domino Designer describes.


Have experienced a strange problem with the AppendRTItem action on the NotesRichTextItem class.

The following code snippet is used in a shared action. When executed, I can successfully insert the text representation of the RTItem “Header”, but if I try to insert the RTItem itself, I get an error “Method is not available”. If I remark out the “BeginInsert”, both commands work correctly (although it’s inserted at the end, which I do not want).

Set header=settings.Getfirstitem(“Header”)

Set body=doc.Getfirstitem(“Body”)

Set rtNav=body.CreateNavigator

rtNav.FindFirstElement(RTELEM_TYPE_TEXTPARAGRAPH)

Set rtRange=body.CreateRange

Call rtRange.SetBegin(rtNav)

Call body.BeginInsert(rtRange)

'----WORKS----

Call body.AppendText(header.Text)

'----DOESN’T WORK----

Call body.AppendRTItem(header)

Subject: RE: AppendRTItem - Method Not Available - Bug

This is most certainly a bug. The documentation clearly states that it can be done yet does not function as stated.

I just spent hours working on something related to table building only to find out that it now is not going to work.

Here is technote 1114718 (http://www-1.ibm.com/support/docview.wss?rs=475&context=SSKTWP&context=SSKTMJ&q1=beginInsert+appendRTItem&uid=swg21114718&loc=en_US&cs=utf-8&lang=en)that addresses the topic in an ignorant way. The workaround is pathetic as it does not address middle insertion.

Subject: RE: AppendRTItem - Method Not Available - Bug

I have no idea if it would help in your case or if a third party product is an option, but our Midas Rich Text LSX is far more robust in these sorts of operations than the Notes rich text classes. It might be worth a try.