I would like to Iterate through a list of contacts in a global address book, such as "DOMINO/COMPANY", "names.nsf".
To test this, I've created a local address book, with one entry "Tres Finocchiaro".
When iterating with Domingo, I get many values of type "Proxy7", and "Proxy8", and ".toString()" gives me very obscure values such as:
DBase (toString): 3659D66CF11147F9852566F800809542 (hashValue): 12524859
DBase (toString): 80F827CCDB6B36EE852566F80080C8AC (hashValue): 27378735
How do I determine which types are "Person", "Address Book", or "Contact". I get similar results with getView("($Users)");
How do I get property "FullName"?
When I go to Lotus Notes >> Right Click Contact >> Properties >> Meta <+>
Notes:///8525731A00491C2D/85255E01001356A8852554C200753106/15A6DC0246377DC3852573D0005A37B9
Which corresponds with:
DBase: (toString): 15A6DC0246377DC3852573D0005A37B9 (hashValue): 17679958
But how do I do this without knowing the identifier?
Thanks!
-Tres
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the toString() method of a DDocument instance returns the universalID of the document which is a 32byte hex string.
In Lotus Notes, a document is simply a container for items that are key/value pairs with some further type information. Some items have predefined meanings, others are application dependend. E.g. the 'Form' item is used by the Notes client to determin the form that should be used to show a document to the user. E.g a 'Person' document has the value "Person" in the 'Form' item and the full name is stored in the 'FullName' item:
while (iterator.hasNext()) {
DDocument doc = (DDocument) iterator.next();
if (doc.getItemValueString("Form").equals("Person")) {
System.out.println("Found person: " + doc.GetItemValueString("FullName"));
}
}
To find out what the other items mean, you can either check the 'Person' form with the Notes designer or simply try out what values are stored inside in the item list in the document properties (second tab).
Hope this helps.
Best regards,
Kurt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
First, thank you for the wonderful API!
I would like to Iterate through a list of contacts in a global address book, such as "DOMINO/COMPANY", "names.nsf".
To test this, I've created a local address book, with one entry "Tres Finocchiaro".
When iterating with Domingo, I get many values of type "Proxy7", and "Proxy8", and ".toString()" gives me very obscure values such as:
DBase (toString): 3659D66CF11147F9852566F800809542 (hashValue): 12524859
DBase (toString): 80F827CCDB6B36EE852566F80080C8AC (hashValue): 27378735
How do I determine which types are "Person", "Address Book", or "Contact". I get similar results with getView("($Users)");
How do I get property "FullName"?
When I go to Lotus Notes >> Right Click Contact >> Properties >> Meta <+>
Notes:///8525731A00491C2D/85255E01001356A8852554C200753106/15A6DC0246377DC3852573D0005A37B9
Which corresponds with:
DBase: (toString): 15A6DC0246377DC3852573D0005A37B9 (hashValue): 17679958
But how do I do this without knowing the identifier?
Thanks!
-Tres
Hello Tres,
the toString() method of a DDocument instance returns the universalID of the document which is a 32byte hex string.
In Lotus Notes, a document is simply a container for items that are key/value pairs with some further type information. Some items have predefined meanings, others are application dependend. E.g. the 'Form' item is used by the Notes client to determin the form that should be used to show a document to the user. E.g a 'Person' document has the value "Person" in the 'Form' item and the full name is stored in the 'FullName' item:
while (iterator.hasNext()) {
DDocument doc = (DDocument) iterator.next();
if (doc.getItemValueString("Form").equals("Person")) {
System.out.println("Found person: " + doc.GetItemValueString("FullName"));
}
}
To find out what the other items mean, you can either check the 'Person' form with the Notes designer or simply try out what values are stored inside in the item list in the document properties (second tab).
Hope this helps.
Best regards,
Kurt