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 6 and 7 Forum

Notes/Domino 6 and 7 Forum



PreviousPrevious NextNext

Liza Davila 17.Jan.06 11:50 AM a Web browser
Applications Development 6.0.2 CF2 Windows XP


I have a form with a rich text field where I want to attach a table. Since the table has to have specific features, what I do is that I have a table with one row and all the settings I want in a profile document and from the form I use AppendRTItem to copy the table to my rich text field. I'm able to copy the table to the field but I also want to put a time stamp to the first column of the only row in the table but my code never finds the table when I try to use FindFirstElement. This is a piece of the code I wrote:

'tablefield is the table from my profile document
Call rtitem.AppendRTItem( tableField )
Call rtitem.Update
Set rtnav = rtitem.CreateNavigator
'After I append the table, I look for it in the field and I don't see it, so the If statement is not executed.
If rtnav.FindFirstElement(RTELEM_TYPE_TABLE) Then
Set rtt = rtnav.GetElement
flag = rtnav.FindNthElement(RTELEM_TYPE_TABLECELL,1)
'Now I'm positioned on the first column of the last row
Call currentTime.SetNow
timeOnly = currentTime.TimeOnly
militaryTime = Cstr(Format$(timeOnly,"h:mm:ss"))
Call rtitem.BeginInsert(rtnav)
richStyle.Bold = True
Call rtitem.AppendStyle(richStyle)
Call rtitem.AppendText(militaryTime)
richStyle.NotesColor = COLOR_Black
richStyle.Bold = False
Call rtitem.AppendStyle(richStyle)
Call rtitem.EndInsert
flag = rtnav.FindNthElement(RTELEM_TYPE_TABLECELL,2)
End If

The line where I'm having the problem is:

If rtnav.FindFirstElement(RTELEM_TYPE_TABLE)

because after I append the table, I try to look for it with the IF statement and the if fails.

I appreciate any help!

FindFirstElement fails (Liza Davila 17.Jan.06)
. . RE: FindFirstElement fails (Ben Langhinrich... 17.Jan.06)
. . . . RE: FindFirstElement fails (Liza Davila 17.Jan.06)

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 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