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
Set rt1 = docServer.GetFirstItem("Attachments")
Set rt2 = docServer.GetFirstItem("AdminComm")
Set rt3 = docServer.GetFirstItem("ProjCoordComm")
Set rtn1 = rt1.CreateNavigator
Set rtn2 = rt2.CreateNavigator
Set rtn3 = rt3.CreateNavigator
'Dim validateRTI As Boolean
' validate = False
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)
validateRTI = False
If (rtn.FindFirstElement(RTELEM_TYPE_DOCLINK) Or _
rtn.FindFirstElement(RTELEM_TYPE_FILEATTACHMENT) Or _
rtn.FindFirstElement(RTELEM_TYPE_OLE) Or _
rtn.FindFirstElement(RTELEM_TYPE_SECTION) Or _
rtn.FindFirstElement(RTELEM_TYPE_TABLE) Or _
validateRTI = True
validateRTI = False
'If Not emptyRTField(uidoc, fieldname) Then validate = True
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