I am trying to build a program using the c++ toolkit. basically the program is suppose to be able to add/delete contacts infromation from the database names.nsf(the database which
stores all the contacts information).
Currently i have managed to create a new document. However, when i check the Lotus Notes UI, the new contact is not showing in the view ‘Contacts’.The number of documents do increased each time i execute my program though.
I have tried using the function LNDatabase::FolderAddDocument to the viewfolder and apparently the function did not add successfully.
Is there anyone that knows how to show my newly created document on the view, ‘Contacts’ in the Lotus Notes UI?
Is the view ‘contacts’ a folder in the first place? Seems like my problem lies in not being able to create a new entry. If so, how do i associate my document with an entry.
Thanks a million in advance. I have been bogged down with this problem for days. I Will be very grateful to anyone that can help in anyway. Thanks once again.
Subject: RE: Same way you set FirstName and LastName…
Hi Bill, thanks for the response. I have changed what you told me and the program works perfectly. Thanks a million.
By the way, suppose i want to do a similar function for the “to do” view and the “calendar” view.
For the “to do” view, i simply set form = “task” and the document did appear in the view. However, the following error kept appearing in the Notes UI when i tried to open the document.
“Error trying to open document:Note item not found”
Do you know what is this?
For the calendar view, the document simply did not appear when i employ the same function as the one i posted except i change the form to Appointment.
Is there a way to show the document in calendar view as well? I have tried adding a new calendar type and creating a new entry. but seems like the method did not work. Can you guide me in this as well?
Thank you very much for your time and help. I really appreciate it.
Subject: Displaying New Documents in view ‘Contacts’ of Notes UI
Hi there,
Try setting your form to “Person”. In your case I believe you are not meeting the view selection criteria. Use a Designer client and check the view selection to ensure you are setting all the values necessary to be populated in the view you wish to see your document. HTH