Hello,
I’m having problems accessing the right information from a directory catalog. The following code works fine on a “normal” directory, like the Names.nsf:
LNDocumentArray Docs;
LNFormula SearchFormula;
SearchFormula.SetText(“LastName = "Smith"”);
LNSTATUS ls=db.Search(SearchFormula, &Docs);
I have 2 Smiths so I get both documents with all their items (FullName,Lastname…)
If I run the same code on a directory catalog I get no results (even tough “Smith” as a LastName is present and visible to the Notes client).
If I get the documents one by one and try to read out their Items, I’m getting confusing results (empty LastNames and so on).
I realize it has something to do with the face that the database is a directory catalog.
Would I still be able to search that catalog with the C++ API? I need to find a specific person (knowing the last name) and get its email.
Thank you for any help.