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-->Preferences-->  
            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
SueshPadmanabhanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sjef BosmanGroupware ConsultantCommented:
sjef_bosman wrote in http:Q_21809349.html#16426072 "How to Getdata using VIEW_CALENDAR_FORMAT ?>>>>>>>>>>>>>>>>>>>>>>>":
> 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...
0
mbonaciCommented:
Hi SueshPadmanabhan,
to access the calendar profile doc use LNDatabase object's method:
    LNSTATUS OpenCalendarProfileDocument(const LNString &owner, LNCalendarProfileDocument *profile)

to change the profile's item's value use:
    LNSTATUS SetProfileField(const LNString &fieldname, const LNItem &item)

which is LNProfileDocument method (LNCalendarProfileDocument base class).

Hope this helps,
Marko
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mbonaciCommented:
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\profile).

Instead of method OpenCalendarProfileDocument( "", 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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.