anlage von Serienterminen

  • das habe ich bereits gemacht ....


    To disable persistent breakpoints
    Click File > Preferences.
    Click Basic Notes Client Configuration.
    Under Additional Options, click Enable persistent breakpoints in LotusScript debugger.
    Click OK.


    aber der log wirft nichts aus wenn ich einen appointment öffne etc .. oder gibt es eine seperate logausgabe?


    ich würde halt einfach gerne sehen, das item konnte nicht gefunden werden .... also setze ich es .. und mich so voran tasten, ich hab leider nicht die zeit mich richtig in lotus notes einzuarbeiten, auch wenn es interessant ist. die schönheitskorrekturen kann ich danach ja machen. aber erstma muss der prototyp her :(


    in der log.nsf steht leider nur drin, wann ich mich angemeldet und abgemeldet habe ...

  • Nein du sollst den Lotus Script Debugger einschalten und nicht irgendwelche Breakpoints aktivieren.


    Und sorry wenn du nicht mal die mitgeliefrte gute Hilfe dazu benutzen kannst ist das schon traurig

  • ok entschuldigung, ich habe halt nur im lotus notes designer das debugging gefunden, und da möchte ich es nicht. ich würde gern im client sehen, warum der fehler auftritt. aber das scheint nicht zu gehen.


    unterm designer ist dies ja unter tools .. hab ich überhaupt ne möglichkeit im client?

  • ja klar geht das, hatte tomaten auf den augen. konnte den fehler lokalisieren, nur leider finde ich das feld nicht was fehlt.



    Domino.NotesDatabase notesDatabase = null;
    Domino.NotesSession notesSession = null;


    // SerienTermin erstellen
    Domino.NotesDocument parentNotesDocument = null;
    Domino.NotesDocument childNotesDocument = null;


    string iconNumber = "@TextToNumber(" + ((char)(34)).ToString() + "160" + ((char)(34)).ToString() + ")";

    string sequenceNumber = "@TextToNumber(" + ((char)(34)).ToString() + "1" + ((char)(34)).ToString() + ")";


    string startDateTime = "@TextToTime(" + ((char)(34)).ToString() + "25.05.2009 08:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "26.05.2009 08:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "27.05.2009 08:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "28.05.2009 08:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "29.05.2009 08:45:00" + ((char)(34)).ToString() + ")";


    string startDate = "@TextToTime(" + ((char)(34)).ToString() + "25.05.2009 08:45:00" + ((char)(34)).ToString() + ")";


    string endDateTime = "@TextToTime(" + ((char)(34)).ToString() + "25.05.2009 09:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "26.05.2009 09:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "27.05.2009 09:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "28.05.2009 09:45:00" + ((char)(34)).ToString() + ")"
    + ":@TextToTime(" + ((char)(34)).ToString() + "29.05.2009 09:45:00" + ((char)(34)).ToString() + ")";

    string endDate = "@TextToTime(" + ((char)(34)).ToString() + "25.05.2009 09:45:00" + ((char)(34)).ToString() + ")";
    try
    {
    // Session initalisieren
    notesSession = new Domino.NotesSession();
    notesSession.Initialize("geheim");

    // Datenbank holen
    notesDatabase = notesSession.GetDatabase("DominoDevelopServer/BDL", "mail\\administ.nsf", false);


    parentNotesDocument = notesDatabase.CreateDocument();
    childNotesDocument = notesDatabase.CreateDocument();


    // Repeat - Felder
    //parentNotesDocument.ReplaceItemValue("RepeatAdjust","");
    parentNotesDocument.ReplaceItemValue("RepeatEndDates", notesSession.Evaluate(endDateTime,parentNotesDocument));
    //parentNotesDocument.ReplaceItemValue("RepeatCustom", "");
    // List of Current Dates ...
    parentNotesDocument.ReplaceItemValue("RepeatDates", notesSession.Evaluate(startDateTime,parentNotesDocument));
    parentNotesDocument.ReplaceItemValue("RepeatForJunit", "D");
    parentNotesDocument.ReplaceItemValue("RepeatFromEnd", "");
    parentNotesDocument.ReplaceItemValue("RepeatHow", "F");
    parentNotesDocument.ReplaceItemValue("RepeatInstanceDate", notesSession.Evaluate(startDateTime, parentNotesDocument));
    parentNotesDocument.ReplaceItemValue("RepeatInterval", "1");
    parentNotesDocument.ReplaceItemValue("RepeatStartDate", notesSession.Evaluate(startDateTime,parentNotesDocument));
    parentNotesDocument.ReplaceItemValue("RepeatUnit", "D");
    parentNotesDocument.ReplaceItemValue("RepeatUntil", "");
    parentNotesDocument.ReplaceItemValue("RepeatWeekends", "D");


    // Appointment - Items
    parentNotesDocument.ReplaceItemValue("$CSFlags", "c"); //spez
    //parentNotesDocument.ReplaceItemValue("$CSTrack", "");
    //parentNotesDocument.ReplaceItemValue("$CSVersion", "");
    //parentNotesDocument.ReplaceItemValue("$CSWISL", "");
    //parentNotesDocument.ReplaceItemValue("$Ref", "");
    //parentNotesDocument.ReplaceItemValue("$Seal", "");
    //parentNotesDocument.ReplaceItemValue("$SealData", "");
    //parentNotesDocument.ReplaceItemValue("$Signature", "");
    //parentNotesDocument.ReplaceItemValue("$WatchedItem", "");
    parentNotesDocument.ReplaceItemValue("_ViewIcon", notesSession.Evaluate(iconNumber, parentNotesDocument));
    //parentNotesDocument.ReplaceItemValue("_ViewIcon2", "");
    parentNotesDocument.ReplaceItemValue("AltChair", "CN=Administrator/O=TEST");
    parentNotesDocument.ReplaceItemValue("AppointmentType", "0"); //spez
    parentNotesDocument.ReplaceItemValue("ApptUNID", parentNotesDocument.UniversalID);
    //parentNotesDocument.ReplaceItemValue("Body", "");
    //parentNotesDocument.ReplaceItemValue("Broadcast", "");
    //parentNotesDocument.ReplaceItemValue("Categories", "");
    parentNotesDocument.ReplaceItemValue("Chair", "CN=Administrator/O=TEST");
    parentNotesDocument.ReplaceItemValue("EndDateTime", notesSession.Evaluate(endDate,parentNotesDocument));
    parentNotesDocument.ReplaceItemValue("EndTimeZone","Z=-1$DO=1$DL=3 -1 1 10 -1 1$ZX=83$ZN=W. Europe");
    //parentNotesDocument.ReplaceItemValue("ExcludeFromView", "");
    parentNotesDocument.ReplaceItemValue("Form", "Appointment"); //spez
    parentNotesDocument.ReplaceItemValue("From", "CN=Administrator/O=TEST"); //spez
    parentNotesDocument.ReplaceItemValue("Location", "Geisenheim");
    parentNotesDocument.ReplaceItemValue("Logo", "stdNotesLtr0");
    //parentNotesDocument.ReplaceItemValue("NoticeType", "");
    //parentNotesDocument.ReplaceItemValue("MeetingType", "1");
    //parentNotesDocument.ReplaceItemValue("OptionalAttendess", "");
    //parentNotesDocument.ReplaceItemValue("OrgConfidential", "");
    parentNotesDocument.ReplaceItemValue("OrgRepeat", "1");
    parentNotesDocument.ReplaceItemValue("OrgTable", "1");
    //parentNotesDocument.ReplaceItemValue("OriginalEndDate", "");
    //parentNotesDocument.ReplaceItemValue("OriginalEndTimeZone", "");
    //parentNotesDocument.ReplaceItemValue("OriginalStartDate", "");
    //parentNotesDocument.ReplaceItemValue("OriginalStartTimeZone", "");
    //parentNotesDocument.ReplaceItemValue("ParentRepeatDates", "");
    //parentNotesDocument.ReplaceItemValue("ParentRepeatInstanceDates", "");
    //parentNotesDocument.ReplaceItemValue("PreventCounter", "");
    //parentNotesDocument.ReplaceItemValue("PreventDelegate", "");
    parentNotesDocument.ReplaceItemValue("Repeats", "1");
    //parentNotesDocument.ReplaceItemValue("RepeatInstanceDate", "");
    //parentNotesDocument.ReplaceItemValue("RequiredAttendees", "");
    //parentNotesDocument.ReplaceItemValue("RescheduleEndDateTimes", "");
    //parentNotesDocument.ReplaceItemValue("RescheduleInstanceDates", "");
    //parentNotesDocument.ReplaceItemValue("RescheduleStartDateTimes", "");
    //parentNotesDocument.ReplaceItemValue("RescheduleWhich", "");
    parentNotesDocument.ReplaceItemValue("SequenceNum", notesSession.Evaluate(sequenceNumber,parentNotesDocument));
    //parentNotesDocument.ReplaceItemValue("StartDate", "");
    parentNotesDocument.ReplaceItemValue("StartDateTime", notesSession.Evaluate(startDateTime,childNotesDocument));
    parentNotesDocument.ReplaceItemValue("StartTimeZone", "Z=-1$DO=1$DL=3 -1 1 10 -1 1$ZX=83$ZN=W. Europe");
    //parentNotesDocument.ReplaceItemValue("StatusUpdate", "");
    //parentNotesDocument.ReplaceItemValue("StorageRequriedNames", "");
    parentNotesDocument.ReplaceItemValue("Subject", "Serie aus dialogcrm");
    //parentNotesDocument.ReplaceItemValue("Topic", "");
    //parentNotesDocument.ReplaceItemValue("UpdateSequence", "");



    // Notes-Dokument speichern
    parentNotesDocument.ComputeWithForm(true, false);
    parentNotesDocument.Save(true, false, true);

    //Child
    // Appointment - Items
    childNotesDocument.MakeResponse(parentNotesDocument);
    childNotesDocument.ReplaceItemValue("$CSFlags", "i");
    //childNotesDocument.ReplaceItemValue("$CSTrack", "");
    childNotesDocument.ReplaceItemValue("$CSVersion", "2"); //?
    //childNotesDocument.ReplaceItemValue("$CSWISL", "");
    //childNotesDocument.ReplaceItemValue("$Ref", ""); // wird angeblich duch Response erstellt
    childNotesDocument.ReplaceItemValue("$RefOptions", "1");
    childNotesDocument.ReplaceItemValue("$Seal", "");
    //childNotesDocument.ReplaceItemValue("$SealData", "");
    //childNotesDocument.ReplaceItemValue("$Signature", "");
    //childNotesDocument.ReplaceItemValue("$WatchedItem", "");
    childNotesDocument.ReplaceItemValue("_ViewIcon", notesSession.Evaluate(iconNumber, parentNotesDocument));
    //childNotesDocument.ReplaceItemValue("_ViewIcon2", "");
    childNotesDocument.ReplaceItemValue("AltChair", "CN=Administrator/O=TEST");
    childNotesDocument.ReplaceItemValue("AppointmentType", "0");
    childNotesDocument.ReplaceItemValue("ApptUNID", parentNotesDocument.UniversalID);
    childNotesDocument.ReplaceItemValue("Body", "");
    //childNotesDocument.ReplaceItemValue("Broadcast", "");
    childNotesDocument.ReplaceItemValue("CalendarDateTime", notesSession.Evaluate(startDateTime,childNotesDocument));
    //childNotesDocument.ReplaceItemValue("Categories", ""); // is leer
    childNotesDocument.ReplaceItemValue("Chair", "CN=Administrator/O=TEST");
    childNotesDocument.ReplaceItemValue("EndDateTime", notesSession.Evaluate(endDateTime,childNotesDocument));
    childNotesDocument.ReplaceItemValue("EndTimeZone", "Z=-1$DO=1$DL=3 -1 1 10 -1 1$ZX=83$ZN=W. Europe");
    //childNotesDocument.ReplaceItemValue("ExcludeFromView", "");
    childNotesDocument.ReplaceItemValue("Form", "Appointment");
    childNotesDocument.ReplaceItemValue("From", "CN=Administrator/O=TEST");
    childNotesDocument.ReplaceItemValue("Location", "Geisenheim");
    childNotesDocument.ReplaceItemValue("Logo", "stdNotesLtr0");
    childNotesDocument.ReplaceItemValue("MeetingType", "1");
    //childNotesDocument.ReplaceItemValue("NoticeType", "");
    //childNotesDocument.ReplaceItemValue("OptionalAttendess", "");
    childNotesDocument.ReplaceItemValue("OrgConfidential", "");
    childNotesDocument.ReplaceItemValue("OrgRepeat", "1");
    childNotesDocument.ReplaceItemValue("OrgTable", "C0");
    //childNotesDocument.ReplaceItemValue("OriginalEndDate", "");
    //childNotesDocument.ReplaceItemValue("OriginalEndTimeZone", "");
    //childNotesDocument.ReplaceItemValue("OriginalStartDate", "");
    //childNotesDocument.ReplaceItemValue("OriginalStartTimeZone", "");
    //childNotesDocument.ReplaceItemValue("ParentRepeatDates", "");
    //childNotesDocument.ReplaceItemValue("ParentRepeatInstanceDates", "");
    //childNotesDocument.ReplaceItemValue("PreventCounter", "");
    //childNotesDocument.ReplaceItemValue("PreventDelegate", "");
    //childNotesDocument.ReplaceItemValue("Repeats", "1");
    //childNotesDocument.ReplaceItemValue("RepeatInstanceDate", notesSession.Evaluate(startDateTime,childNotesDocument));
    //childNotesDocument.ReplaceItemValue("RequiredAttendees", "");
    //childNotesDocument.ReplaceItemValue("RescheduleEndDateTimes", "");
    //childNotesDocument.ReplaceItemValue("RescheduleInstanceDates", "");
    //childNotesDocument.ReplaceItemValue("RescheduleStartDateTimes", "");
    //childNotesDocument.ReplaceItemValue("RescheduleWhich", "");
    childNotesDocument.ReplaceItemValue("SequenceNum", notesSession.Evaluate(sequenceNumber, parentNotesDocument));
    //childNotesDocument.ReplaceItemValue("StartDate", "");
    childNotesDocument.ReplaceItemValue("StartDateTime", notesSession.Evaluate(startDateTime,childNotesDocument));
    childNotesDocument.ReplaceItemValue("StartTimeZone", "Z=-1$DO=1$DL=3 -1 1 10 -1 1$ZX=83$ZN=W. Europe");
    //childNotesDocument.ReplaceItemValue("StatusUpdate", "");
    //childNotesDocument.ReplaceItemValue("StorageRequriedNames", "");
    childNotesDocument.ReplaceItemValue("Subject", "Serie aus dialogcrm");
    //childNotesDocument.ReplaceItemValue("Topic", "");
    //childNotesDocument.ReplaceItemValue("UpdateSequence", "");
    //childNotesDocument.ReplaceItemValue("tmpOwnerHw",


    // Notes-Dokument speichern
    childNotesDocument.ComputeWithForm(true, false);
    childNotesDocument.Save(true, false, true);
    }
    catch (Exception ex)
    {
    Console.WriteLine(ex.Message);
    }

  • Na wenn du den Debugger mitlaufen lässt dann siehst du doch direkt nach der fehlermeldung wo er steht und wo genau er mit welchen Werten auf den Fehler gelaufen ist.
    Also auch welches Feld er gesucht hat

  • leider geht er da nicht rein, wenn ich mich mit stepinto durchdebugge, ich denke das ist eine zuweisung, wenn ja wo kan ich die methode finden ?


    die variable m_note is angeblich noting,dabei hat sie einen inhalt wenn man unter variablen hineinschaut