Import details in addressbook

Hi,

We’re migrating to notes mail, but now I’ve a little problem with the imported details in local addresbook.

When a select a person it says, the selected entry doesn’t have an valid address.

I can solve this by opening this person in the local addresbook and save it once. Then it works fine.

Now I tried to make an agent to open and save and close all documents by using this agent:

@Command([ToolsRefreshSelectedDocs])

But this doesn’t update the document.

How can I solve this?

Many thanks

Rgds,

Rudy

Subject: Import details in addressbook

Hi Rudy,

Use the computewithform method (it recomputes the doc without having to bring it to the ui). Just throw this in an agent (it will run on selected view docs).

Rachel

Dim s As New notessession

Dim db As notesdatabase

Set db = s.currentdatabase

Dim dc As notesdocumentcollection

Set dc = db.UnprocessedDocuments

Dim doc As notesdocument

Set doc = dc.getfirstdocument	

While Not doc Is Nothing

	Call doc.computewithform(False, False)

	Call doc.save(True, True)

	Set doc = dc.getnextdocument(doc)

Wend

or use this to run an all docs (without having to select them)

Dim w As New notesuiworkspace

Dim view As notesview

Set view = w.currentview.view

Dim doc As notesdocument

Set doc = view.getfirstdocument



While Not doc Is Nothing

	Call doc.computewithform(False, False)

	Call doc.save(True, True)

	Set doc = view.getnextdocument(doc)

Wend

Subject: RE: Import details in addressbook

Hi,

Thanks but this doens’t work, i still have the same problem.

What I do see is that when I do it manual the formtitle will be filled, can I also do this with lotusscript?

Thanks

Rgds,

Rudy