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

Jason Sas 8.May.08 01:20 AM a Web browser
Domino Designer 6.5.6; 6.5.5 FP3; 6.5.5 FP2; 6.5.5 FP1; 6.5.5; 6.5.4 FP3; 6.5.4 FP2; 6.5.4 FP1; 6.5.4; 6.5.3 FP2; 6.5.3 FP1; 6.5.3; 6.5.2 FP1; 6.5.2; 6.5.1; 6.5; 6.0.5; 6.0.4; 6.0.3; 6.0.2 CF2; 6.0.2 CF1; 6.0.2; 6.0.1 CF3; 6.0.1 CF2; 6.0.1 CF1; 6.0.1; 6.0 Windows XP

We already have some code which allows a user to select multiple questions, and then hit a button which allows them to enter a standard response and answers all those questions with the same text. At the moment, just copies plain text as the answer, but I want to copy rich text and keep all the formatting.

Basically when a user hits the 'Bulk Answer' button, it presents them with a form which allows them to enter the standard response. I'm playing around with this form firstly to see if I can copy rich text, and this is where I'm having the problem. In the code I've been testing with, I want it to copy the rich text item (in 'standard response' field), and create a new document and paste the rich text from standard response in. When I do this, it comes up with an Object Variable not set error. I've looked through help and it seems like I'm doing it right, but obviously not! Thanks in advance, code is shown below:

Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Dim Workspace As New NotesUiWorkspace
Dim UiDoc As NotesUIDocument
Dim Session As New NotesSession
Dim SelectedQuestions As NotesItem
Dim rtitem As String
Dim rtitem2 As String

'// If the user presses cancel then dont do anything
If Source.Document.CreateDocuments(0) = "No" Then
Exit Sub
End If

'// Begin Creating the Advice for each selected Document
Set SelectedQuestions = Source.Document.GetFirstItem("SelectedQuestions")
Dim DocA As NotesDocument
Set DocA = Source.Document

'// Create the Advice Documents
If (Source.Document.DocumentType(0) = "Advice") Then
Call CreateBulkAdviceForMany(SelectedQuestions)
' '// Create the Answer Documents

Dim database As NotesDatabase
Set Database = Session.CurrentDatabase
Dim logdoc As NotesDocument
Dim Testing As NotesRichTextItem
Dim dummyitem As NotesRichTextItem
Set logdoc = Database.CreateDocument

logdoc.form = "EventLog2"

Set dummyitem = Source.Document.GetFirstItem("StandardResponse")
Set Testing = logdoc.GetFirstItem("LogAction")

Call dummyitem.AppendRTItem(Testing)
Call logdoc.Save( True, True )
End If
Exit Sub

End Sub

Copying rich text item (Jason Sas 8.May.08)
. . RE: Copying rich text item (Aniz Mohammed 8.May.08)
. . . . RE: Copying rich text item (Jason Sas 8.May.08)
. . . . . . RE: Copying rich text item (Aniz Mohammed 8.May.08)
. . . . . . RE: Copying rich text item (Aniz Mohammed 8.May.08)
. . . . . . . . RE: Copying rich text item (Jason Sas 8.May.08)

  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