Skip to main content
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 4 and 5 Forum

Notes/Domino 4 and 5 Forum



RE: Has anyone out there been able to display contents of Profile Docs in a view?
Kevin Pettitt 10.Dec.02 02:23 PM a Web browser
Domino Designer -- Forms All Releases All Platforms

I don't think there is any practical way to achieve your goal directly. However, I would suggest a modification in the way you interact with profile documents that will give you the desired result.

My standard approach to profile docs is to have a normal, front end document store the values, and to write some or all of those values back to one or more profile documents using the form's querysave event. Once you've got a "normal" version of the document, you just display those docs in the view, and viola!

Here's a sample to get you going. Imagine some sort of configuration document or database preferences document, with some fields with names starting with "Layout" and others starting with "Pref". Customize the following code according to your form:

Sub Querysave(Source As Notesuidocument, Continue As Variant)
Dim doc As NotesDocument
Dim ProfileDoc1 As NotesDocument
Dim ProfileDoc2 As NotesDocument

Set doc = source.document

Set ProfileDoc1 = db.GetProfileDocument("DBSettings")
Set ProfileDoc2 = db.GetProfileDocument("LayoutSettings")

Call ProfileDoc1.ReplaceItemValue("DBTitle", db.title) 'set individual field value directly

'Loop through fields with standard name prefixes
Forall item In doc.Items
If Left( item.Name, 4 ) = "Pref" Then
Call ProfileDoc1.ReplaceItemValue(, .GetItemValue(
End If
If Left( item.Name, 6 ) = "Layout" Then
Call ProfileDoc2.ReplaceItemValue(, doc.GetItemValue(
End If
End Forall

Call ProfileDoc1.Save(True, False)
Call ProfileDoc2.Save(True, False)

End Sub

Has anyone out there been able to d... (Fred DuCoeur 10.Dec.02)
. . RE: Has anyone out there been able ... (Lee Helm 10.Dec.02)
. . RE: Has anyone out there been able ... (Kevin Pettitt 10.Dec.02)

  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
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

IBM Composite Applications
IBM Mashup Center
IBM Connections
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
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow