Hi,
I’ve been trying to use NAMELookup2 to implement type-ahead address lookups in my Lotus C API application. I’ve been using the following call:
STATUS err = NAMELookup2(serverNameStr, 0, numNamespaces, namespacesStr, 1, nameStringStr, numItems, itemsStr, &lookupHandle);
Where:
namespacesStr = “$NamesFieldLookup” and numNamespaces = 1,
itemsStr = “FullName” and numItems = 1
The problem I’m seeing is this, if I attempt to lookup my own name (Matt Wright/UK/IBM), as the typing progresses I get very annoying behaviour. If I pausing typing while I have the word “Matt” written, then it will search and return all the names beginning with “Matt” but will not return any that are (for instance) “Matthew”. You can get similar behaviour if you type “Dan” and it will return matches for first names that are Dan but not Daniel. If I continue typing my name and pause at “Matt Wr” then I will get zero results from the lookup, right up until I’ve typed my full name when the search suddenly finds me again.
Is there a way to convince this call to search more like the way I want it to, I would like it to behave like the Notes type-ahead fields. Such that, when I type “Matt Wr” I would get all results beginning in those letters, which would include myself.
Regards,
Matt