Why did you change the names? that does not have anything to do with the change of the hosting server, except, that this server has to be in one of the reader-fields to be able to see the documents for replication or so.unfortunatelly, I don't understand German just English ... :(
from what to what have you changed the names?
Did you use the fully qualified name? (see here: Notes Namesystem (http://www.atnotes.de/index.php?board=26;action=display;threadid=14119)
And look also at this document:
Overview ACL (http://www.atnotes.de/index.php?board=26;action=display;threadid=13534)
BTW: Best Practices on this board is a very useful resource for this type of problems
Hey, the user-name does not depend on the server, the database is residing on, but solely from what is defined inside the ID-file, that resides on the client-workstation, so if you change their names, they have to change ID-file or they have to be renamed by the appropriate administrative process, so what you did does not make sense in my eyes.they are the same people but they have another IDs (new IDs) according with new server !
And, you are referring to the names in its abbreviated form. Do you have the names in canonical form in the readers-field? That is
CN=user/OU=123/O=Organisation ?
They have to be in canonical form to work inside readers and authors fields
Are you sure, that it has been abbreviated before and was not only displayed in the abbreviated form? This is very usual practice with readernames and author-fieldsI am sure. I use the sytax name/OrgUnit/Organization and it works !
As far as I remember the abbreviated form gets converted automatically when you type them in an editable field or use abbreviated form in formulas for computed fields.Are you sure, that it has been abbreviated before and was not only displayed in the abbreviated form? This is very usual practice with readernames and author-fieldsI am sure. I use the sytax name/OrgUnit/Organization and it works !
Yes, usually it does, if you don't overwrite that behaviour, and hence it is saved as canonical and not abbreviated. But it does not, if you fill the fields directly in the backend-document by LotusScriptso the best thing I should do is to modify the readers field with LS to get the canonical values, isn't it ?
No, with LS you have to supply the canonical form of the name yourself, this translation is done in the UI.it is exactly that I said before your last reply: to modify the actual values from abbreviated to canonical with a LS agent.
You can do the following within LS:
dim namTemp As NotesName
set namTemp = New NotesName ( "username/Department/Organisation" )
print namTemp.canonical
to convert from abbreviated to canonical with LS
it should be a good idea to work with item class. Item class has properties like isReaders and some such.is it necessary to set
note.IsReaders=TrueYes, usually it does, if you don't overwrite that behaviour, and hence it is saved as canonical and not abbreviated. But it does not, if you fill the fields directly in the backend-document by LotusScript
While Not(note Is Nothing)
Limits=Ubound (note.Reviewers)
Redim Preserve New_values(Limits) As String
For i=0 To Limits
New_values(i)=note.Reviewers(i)
Set curent_CN = New NotesName(New_values(i))
name=curent_CN.abbreviated
' I perform a search into the employee db to get the full name based on abbreviated name
Set employee_doc = view.GetDocumentByKey (name)
If Not (employee_doc Is Nothing) Then
If employee_doc.form(0) = "Job" Then
Set full_name=New NotesName(employee_doc.name_CN(0))
Else
Messagebox("Can't be found" & name)
End If
New_values(i)=full_name.canonical
End If
Next
note.Reviewers=New_values
Dim item As NotesItem
Set item = note.GetFirstItem( "Reviewers" )
item.IsReaders=True
Call note.Save(True,False)
Set note = collection.GetNextDocument(note)
Wendnote.Reviewers=New_values
Dim item As NotesItem
Set item = note.GetFirstItem( "Reviewers" )
item.IsReaders=True
Call note.Save(True,False)
@Command([ToolsRefreshAllDocs]);
@All