Hi-I’ve created a simple add-in to Notes in C that creates a new Contact in the contact list. If the Notes client is open, the new contact does not appear on the screen until I hit the F9 refresh key.
Is there a way to force the Notes client to refresh the view from within my C program?
Thanks!
Nicholas
Subject: How can I refresh Notes view using C API?
Hi Nicholas,
Is it possible to share your coder with me?
Regards
~Vinay
Subject: RE: How can I refresh Notes view using C API?
Hi Vinay-I really don’t have any refresh code… that’s why I’m asking 
But here is the code that adds a new contact:
NOTEHANDLE hNewNote;
ret = NSFNoteCreate(hdb, &hNewNote);
ret = NSFItemSetText(hNewNote, "Form", "Person", MAXWORD);
ret = NSFItemSetText(hNewNote, "Type", "Person", MAXWORD);
ret = NSFItemSetText(hNewNote, "LastName", "Flintstone", MAXWORD);
ret = NSFItemSetText(hNewNote, "FirstName", "Fred", MAXWORD);
ret = NSFNoteUpdate(hNewNote, 0);
ret = NSFNoteClose(hNewNote);