Home > Domino Tips > Administrator > Address Book > To display names in the same order in the view "contacts" in the Personal Address Book
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ADDRESS BOOK

To display names in the same order in the view "contacts" in the Personal Address Book


HW Peng
07.18.2001
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Question:
User can choose the displaying order of the newly created contacts by selecting Tools, User Preferences in Notes R5 Personal Address Books. But that order only applies to the newly created contacts such as when the names of the existing documents are still displayed in the previous order. It makes the display format in the column of names in the view "contacts" inconsistent.

Solution:
Administrator can insert the following scripts in the postsave event of the form "(PersonalAddressProfile)" in the template "StdR4PersonalAddressBook," and deliver the revised template to users or place/replicate the template on the servers, and let users refresh their personal address book's design. The following script would update the field NameDisplayPref to all contact documents with the new setting in the user preference.



Code

Sub Postsave(Source As Notesuidocument)
	Dim ss As New NotesSession
	Dim db As NotesDatabase
	Dim collection As notesdocumentcollection
	Dim doc As NotesDocument
	Dim pref As String
	Dim view As NotesView
	
	pref=Source.Document.NameDisplay(0)
	
	Set db=ss.CurrentDatabase
	Set collection=db.AllDocuments
	Set doc=collection.GetFirstDocument
	While Not (doc Is Nothing )
		If doc.Form(0) = "Person" Or doc.Form(0)="Company" Then
			doc.NameDisplayPref=pref
			doc.save True,True
		End If
		Set doc=collection.GetNextDocument(doc)
	Wend
	
	Set view=db.GetView("People")
	view.Refresh
End Sub

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Address Book
Formula language button manages Deny Access list searches
Find a Lotus Notes user within NAB Deny Access groups
Synchronize LinkedIn contacts with Lotus Notes Domino
How to correct Lotus Notes public key mismatches in four easy steps
Creating a Lotus Notes Personal Address Book replica
Admin user unable to create NAB
@Transform formula for use in R6
Change NAB while maintaining integrity of documents
NAB: A key piece of the Domino administration puzzle
Build an extended directory catalog

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts