Subject: NotesRichTextNavigator and Apple/Traveler
Feedback Type: Problem
Product Area: Notes Traveler
Technical Area: Application Development
Our mailin db agent takes emails from a variety of client/gadget types. It reads the first document link in body of an email and then sends that linked document back to the user so that they can read it on a Blackberry for instance.
The agent works fine when sending from a Blackberry or notes client. But if we send via an Apple using Traveller then it does not work.
On testing code in debugger and with messagebox on schedule I have found that when the link is sent from an Apple/Traveller, while it is possible to create a NotesRichTextItem with real information in it, it is not possible to Createnavigator. The navigator remains blanks and so the rest of the code does not work.
The key part of the code which fails is this:
Dim docLink as NotesDocument
Dim rtNav as NotesRichTextNavigator
Dim rtf as NotesRichTextItem
Dim doc as NotesDocument
Set doclink = Nothing
Set rtNav = Nothing
Set rtf = Nothing
Set item = doc.GetFirstItem("Body")
If item.Type = RICHTEXT Then
Set rtf = doc.Getfirstitem("Body")
strVar = rtf.GetUnformattedText( )
!!!>>>>>>>Set rtNav = rtf.CreateNavigator<<<<<<<<!!!!
If Not rtNav Is Nothing Then
Set rtNav = rtf.CreateNavigator
If rtNav Is Nothing Then
Also should add that I used SCANEZ to review the document and could see the link code in the Body field when viewing in Advanced mode composite items. I wonder if there is any way to access this information using Lotus script if NotesRichTextnavigator just does not work here?
As you can see I put some safeties in the code to ensure the navigator was blank to start with and that if not opened it was then attempted a second time to create it. The odd thing is it completely skips the second lookup If Not rtNav Is Nothing Then and does not make the second attempt even though I know it does not exist
Have tried with or without the unformatted text lookup before trying to create the navigator
Feedback number WEBB8Q9KHN created by Solve Problems on 01/06/2012