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 12.Jan.09 08:07 PM 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 Windows XP


I am trying to write a string to a richtext field on a ui document but am having trouble getting it to display (see example code below). AFter the document is created and is presented to the user, there are 2 "Recommendation" fields that appear in the properties of the document, but the text I want to set doesn't display in the recommendation field that shows on the screen. When I close the document, it goes back to showing only 1 recommendation field in the properties of the document but with no values in it. I basically just want to set some text in the field and show it to the user. Can anyone help??

Set newrespUIDoc = workspace.ComposeDocument( "", "", "SRLADoc" )

Call newrespUIDoc.FieldSetText("Version", "0")
Set lookupView = thisDb.GetView("(Administration)")
Set lookupDoc = lookupView.GetFirstDocument
sDbLocation = lookupDoc.CabNetDatabase(0)
sDbServer = lookupdoc.CabNetServer(0)

'need to find out what the portfolio is
submissionid = thisDoc.SUBMISSIONDOCID(0)
Set sDb = New NotesDatabase(sDbServer, sDbLocation)
Set sDoc = sDb.GetDocumentByUNID( submissionid )

Forall v In sDoc.Portfolios
portfolioList = portfolioList+";"+v
End Forall
Call newrespUIDoc.FieldSetText("Minister", portfolioList)

Forall x In thisDoc.LeadBriefingOfficer
LeadBriefingOfficerList = LeadBriefingOfficerList+";"+x
End Forall
Call newrespUIDoc.FieldSetText("BriefOfficer", LeadBriefingOfficerList)

Call newrespUIDoc.FieldSetText("thisDate", Cstr(Today))
Call newrespUIDoc.FieldSetText("ParentDocUniqueID", thisDoc.UniversalID)
Call newrespUIDoc.FieldSetText("OriginalCreator", Session.UserName)

Dim recommendationstring As String

recommendationstring = "Proceed to the Cabinet Meeting of / / ." + Chr(13) + Chr(13)
recommendationstring = recommendationstring + "Refer to Cabinet Committee" + Chr(13) + Chr(13)
recommendationstring = recommendationstring + "Further consultation required" + Chr(13) + Chr(13)
recommendationstring = recommendationstring + "Further work on the proposal or presentation of the submission is required" + Chr(13) + Chr(13)

Dim rtbody As NotesRichTextItem

Call newrespUidoc.Refresh(True)
Set newrespdoc = newrespuidoc.Document
Set RTBody = newrespDoc.GetFirstItem("Recommendation")


If Not (thisDoc.SubmissionCategory(0) = "Appointments") Then
Call newrespUIDoc.FieldSetText("T2", "True")
End If

Call CopySecurityLists(thisDoc, thisDoc)

Call newrespUIDoc.Save



Writing to richtext field (Jason Sas 12.Jan.09)
. . RE: Writing to richtext field (Brent Henry 12.Jan.09)
. . . . RE: Writing to richtext field (Jason Sas 12.Jan.09)
. . . . . . RE: Writing to richtext field (Brent Henry 13.Jan.09)
. . . . . . . . RE: Writing to richtext field (Jason Sas 13.Jan.09)

  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