Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next
Subject: Cannot get handle to table in rich text field
Feedback Type: Problem
Product Area: Notes 8 Client
Technical Area: Application development
Platform: Not Applicable
Release: 8.0.2
Reproducible: Always

I have written a LotusScript action to copy a rich text item, containing an empty table, from a pre-existing Notes document, append it to a newly-created rich text item in a new document, populate some of the table cells and launch the new document. The problem is that my code cannot 'see' the empty table in either document, yet when I launch either document, the empty table is there. I am trying to get a handle to the table via a NotesRichTextNavigator. The code snippet below runs fine in context but always results in the "Body field does not contain a table" message, even though I have confirmed via debugging that there is a valid handle to both the rich text item and the rich text navigator.

Dim rtnav As NotesRichTextNavigator
Dim doc As NotesDocument
Dim rtItem As NotesRichTextItem

..... 'Get handle to doc etc.

Set rtBody = New NotesRichTextItem(doc, "Body")
Set rtNav = rtBody.createnavigator

If Not rtNav.FindFirstElement(RTELEM_TYPE_TABLE) Then
Msgbox "Body field does not contain a table.",, "Error"
Exit Sub
End If

I have successfully created similar functionality years ago so I can't understand why it won't work in this situation. The table is definitely there, and is actually the only content in the rich text field, so why can't Notes see it via rtNav? I have also used the GetElementCount(rtNav, RTELEM_TYPE_TABLE) call which falsely reports there are 0 tables in the item. Has there been some change to this functionality between Notes 6.5 and Notes 8.5.3?

Feedback number WEBBA9UVWG created by Chris A Edwards on 05/11/2016

Cannot get handle to table in rich ... (Chris A Edwards... 11.May.16)
. . Solved it myself (Chris A Edwards... 12.May.16)


Search this forum

Member Tools

RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite