CalendarDateTime not changing

I have a calendar entry that I created with a script. It shows up fine in my calendar. The problem is that when I now go into the entry in my calendar and change the date, the notesitem “CalendarDateTime” doesn’t change.

My guess is that it may have something to do with the fact that there are some tmp-fields in the entry. Fields that not exists on a entry that is not created with script. But I can’t get it to work.

Searched this forum but can’t find a answer.

Anybody???

I would really appreciate if someone could point me in the right direction.

TIA

Jocke

Subject: CalendarDateTime not changing

Try a Computewithform before saving it. Should set all those tmp-Fields.

// Michael

Subject: RE: CalendarDateTime not changing

Hi.I’m doing a computeWithForm already.

The problem is that there are scripts in the scriptlibrary of the mailfile that is used while storing the form.

/Jocke

Subject: RE: CalendarDateTime not changing

Hej Jocke.

What do you mean? Do you not create the calendar-document in your mailfiles calendar? Is this a separate database? If so, copy all script-librarys as well as the calendar-form to this database from your mailfile.

// Micke

Subject: CalendarDateTime not changing

Hello

Can you post the script which u r using to set the field value.

Tom

Subject: RE: CalendarDateTime not changing

Hi.There is nothing much to it.

this is the code that sets the CalendarDateTime:

caldoc.CalendarDateTime=doc.datum(0) + doc.Tid_bokning(0)

I pick date and time from two fields.

And the field is set OK to a Time/Date field

/Jocke

Subject: RE: CalendarDateTime not changing

make sure that you add the user’s name in canonical format to principal field in the appointment entry.Calendar entry with no values set to principal field will bypass the CSDocSave event in the calendar, thus not setting calendardatetime to the new value.