Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

Get Field & Store & Group Document
Nadeem Shaikh 8.Jan.04 04:25 PM a Web browser
Domino Designer -- LotusScript 4.6.5a Windows NT

Hi,

Can someone please help with my problem:

I have the following piece of code that goes through a view, gets the first document and then gets a field, it then stores that field which is a name of a person...eventually that name will need to be placed in the members field of a PRE CREATED group document in an Address Book Database, it then goes to the next field in the document and etc etc and then the next DOCUMENT is processed

I know which field values need to go into which group document (this i need to hardcode somewhere in my ForAll Statement below using maybe Case Statements) but how do i do this..i dont undertstand how i place the stored field in the relevant group document member field

Can someone please guide me or offer hints

Thanks

Sub Initialize
'Main code:
Dim s As New notessession
Dim db As notesdatabase
Dim nabdb As notesdatabase

Dim doc As notesdocument
Dim server As String

Dim devdoc As notesdocument
Dim devitem As notesitem

Dim docitem As notesitem
Dim gnameitem As notesitem



Set UnicornDb = s.currentdatabase
Set db = s.currentdatabase
server = db.server

Set nabdb = New notesdatabase(server, "unicorn\unicorn_test\WMPAB.nsf")
If nabdb.isopen = True Then

'''''''''''''NEW CODE HERE

Set SysDetsView = Unicorndb.GetView("SysDetsV")
Set SysDetsDoc = SysDetsView.GetDocumentByKey("A",True)

MailDbName = SysDetsDoc.MailDbName(0)
'
Set PABdb2 = s.getdatabase(serverName$, MailDbName)




If SysDetsDoc.AccessYN(0) = "No" And SysDetsDoc.MailYN(0) = "No" Then
Print "Create Access Control Groups = No"
Print "Create Mail Groups = No"
Print AgentName & " Stopped"
Exit Sub
End If



Set v = db.getview("DivisionsV")
count = 0
'++++++++++++++++++++++++++++++
Set Unidoc = v.getfirstdocument

Dim TAllACPO() As String
Dim i As Integer

Do Until Unidoc Is Nothing



If unidoc.DivName(0) = "Ghost" Then
Exit Sub
End If
'++++++++++++++++++++++++++++++
'Processing here
Forall aconame In unidoc.DivACPO
Redim Preserve TAllACPO(i)
TAllACPO(i) = aconame

'++++++++++++++
THIS IS WHERE I AM HAVING PROBLEMS
' In addressbook, find the following group documents in group view whose listname field equals

All ACO - PRE-CREATED GROUP
Birmingham ACO - PRE-CREATED GROUP


and place aconame value in member field
Having placed aconame in memeber field, save the group document and move to the next document in Division view



i = i + 1
End Forall


'++++++++++++
Set Unidoc = v.getnextdocument(Unidoc)
count = count + 1
Print count
Loop

'++++++++++++
Else
Msgbox "nab isn't open"
End If

'END OF MAIN CODE
End Sub






  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

 Resources
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

 Wikis
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