SueshPadmanabhan
asked on
Getting Three Fields From Calendar Profile Of Notes database file Using Lotus Notes C APi's From C++
Hi
I need to get the values of three Fields present in the Calendar Profile of lotus notes user mail database file (ex: joe.nsf) through Notes C Api's from C++ , can you please provide me a solution for this problem (program sample if possible),
fields That are To be Accessed are
1)CalendarTimeSlotStart
2)CalendarTimeSlotEnd
3)CalendarTimeSlotDuration
they are present in
lotus notes -->calender-->Tools-->Pref erences-->
Calendar & ToDo -->Display
in lotus notes client 6.5
My environment includes
Language : C++ (VC++ 6.0)
Apis -- Lotus Notes C Api's version 6.0
Mail Client : Lotus Notes Client 6.5
Profile Document : Calendar profile of any User's Mail database file (.nsf)
thanks & Regards
SP
I need to get the values of three Fields present in the Calendar Profile of lotus notes user mail database file (ex: joe.nsf) through Notes C Api's from C++ , can you please provide me a solution for this problem (program sample if possible),
fields That are To be Accessed are
1)CalendarTimeSlotStart
2)CalendarTimeSlotEnd
3)CalendarTimeSlotDuration
they are present in
lotus notes -->calender-->Tools-->Pref
Calendar & ToDo -->Display
in lotus notes client 6.5
My environment includes
Language : C++ (VC++ 6.0)
Apis -- Lotus Notes C Api's version 6.0
Mail Client : Lotus Notes Client 6.5
Profile Document : Calendar profile of any User's Mail database file (.nsf)
thanks & Regards
SP
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SueshPadmanabhan,
you have the example of getting the mail db's calendar profile in the sample program (commes with C++ API) called "profile" (NotesCppFolder\Samples\pr ofile).
Instead of method OpenCalendarProfileDocumen t( "", prof ) you can call:
LNSTATUS OpenProfileDocument (const LNString &name, const LNString &owner, LNProfileDocument *profile)
with:
- "CalendarProfile" or LNPROFILECALENDAR as name argument,
- empty string as owner,
- profile as declared LNProfileDocument* (here the profile pointer will be stored)
After that use GetProfileField and SetProfileField to read/modify the items.
Hope this helps,
Marko
you have the example of getting the mail db's calendar profile in the sample program (commes with C++ API) called "profile" (NotesCppFolder\Samples\pr
Instead of method OpenCalendarProfileDocumen
LNSTATUS OpenProfileDocument (const LNString &name, const LNString &owner, LNProfileDocument *profile)
with:
- "CalendarProfile" or LNPROFILECALENDAR as name argument,
- empty string as owner,
- profile as declared LNProfileDocument* (here the profile pointer will be stored)
After that use GetProfileField and SetProfileField to read/modify the items.
Hope this helps,
Marko
> By the way, what are you trying to accomplish?
The description you gave is clear. But how far did you get yourself? Why are you using C? What are you going to use the application for? Is it impossible to do it inside Notes, in LotusScript?
By the way, there are 2 API's: the C-API and the C++-API, less complete but easier to understand form a LotusScript perspective.
PS You could have asked to reopen the question you accidentally closed...