Note adeed via c api not updated in lotus notes contacts

HI,

I have written line application, which add, edit, delete and display notes. When i add a note it is not getting updated in the Lotus notes contact list. But i able to see the added contact in my application.How do i fix this

Here is the way how i do

NSFNoteCreate(g_hdb, &hNote);

if(sRes != NSFItemAppend(hNote, ITEM_NAMES, “FirstName”, strlen(“FirstName”), TYPE_TEXT, cStr, strlen(cStr)))

return false;

// Add remaining fields

NSFNoteUpdate(hNote,UPDATE_FORCE))

return false if failed;

NSFNoteClose(hNote);

Subject: View Formula

This may seem obvious, but are you also meeting the view requirements ie. setting Form = “Person” and Type = “Person”

Subject: Re: View Formula

Hi,I am sorry i didnt get you can you please be a bit clear

Subject: View Formula

Have you determined that the Document is being saved into the Database. ie. has the document count gone up by 1 ?

You referred to adding other fields.

If you are using the Contacts database design and looking at the Person view the formula is…

SELECT (Type = “Person” : “Company”) & (!@IsAvailable($AutoCreatedList) | !@UpperCase($AutoCreatedList) = “DIP”)

So unless you are adding the field Type = “Person” it may be added to the database but you won’t see it in the View.

Subject: Adding note through C API

Hello,

Ya the its getting added, a mean the note(contact).

The other fields what i meant Last Name, Middle Name, Birthday etc. The database is the names.nsf file, I would have not called a Database sorry for that.

Here a cannot use the SELECT statement in c code, what u mentioned.

Sorry if i am not clear. I think u got my point