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  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Previous Next
Subject: Notes RichTextNavigator and tables
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Not applicable

Can't believe I'm back on these forums after so many years!
OK, so I've having some issues with a Notes Rich Text Navigator.
The idea is that I'll use the GetField "hidden feature" to get the contents of a Rich Text field. It doesn't actually work great, but it'll do for what I want.

However, I only want to do the GetField if the relevant notes RichText item (in this case the field is called Attachments), contains a table (or one of the other special elements).

My Document contains a "Tabbed Table". Inside the Tabbed Table is other "normal" tables (they look like rows and columns in Excel).
Unfortunately, this format has been used a lot in this specific database.
I can get the text from the table OK without any formatting (in fact I output to a pdf, different story) but it would be nice if we could get at least a vague representation of the table for the user as well.

But in my RichTextNavigator it just sees "Paragraph Runs" and nothing else.
Selected code used:
'Check the contents of the fields before we export
Dim rtn1 As NotesRichTextNavigator
Dim rtn2 As NotesRichTextNavigator
Dim rtn3 As NotesRichTextNavigator
Dim rt1 As Variant
Dim rt2 As Variant
Dim rt3 As Variant
If(docServer.HasItem("Attachments")) Then
Set rt1 = docServer.GetFirstItem("Attachments")
End If

If(docServer.HasItem("AdminComm")) Then
Set rt2 = docServer.GetFirstItem("AdminComm")
End If
If(docServer.HasItem("ProjCoordComm")) Then
Set rt3 = docServer.GetFirstItem("ProjCoordComm")
End If
Set rtn1 = rt1.CreateNavigator
Set rtn2 = rt2.CreateNavigator
Set rtn3 = rt3.CreateNavigator
'Dim validateRTI As Boolean
' validate = False
'Dim resultAtt1
Dim resultAtt1 As Variant
Dim resultAtt2 As Variant
Dim resultAtt3 As Variant

resultAtt1 = validateRTI(rtn1)
resultAtt2 = validateRTI(rtn2)
resultAtt3 = validateRTI(rtn3)

Then the validateRTI:

Function validateRTI(rtn As NotesRichTextNavigator)
'Other Types
'Or _
'rtn.FindFirstElement(RTELEM_TYPE_TEXTRUN) Then

validateRTI = False

If (rtn.FindFirstElement(RTELEM_TYPE_DOCLINK) Or _
rtn.FindFirstElement(RTELEM_TYPE_OLE) Or _
rtn.FindFirstElement(RTELEM_TYPE_SECTION) Or _
rtn.FindFirstElement(RTELEM_TYPE_TABLE) Or _
rtn.FindFirstElement(RTELEM_TYPE_TABLECELL)) Then
validateRTI = True

validateRTI = False
'If Not emptyRTField(uidoc, fieldname) Then validate = True

End If

End Function

Any ideas? What I'm expecting is that when it sees the table it'll see it as say TELEM_TYPE_TABLE or RTELEM_TYPE_TABLECELL

Later on I added some script with a message box and it seems to see the table as a text run or paragraph run...

Feedback number WEBBB3EKG5 created by Generic Notes Developer on 08/07/2018

Status: Open


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