exclude dialog Box

Legacy

A description has not yet been added to this group.

exclude dialog Box

  • rated by 0 users
  • This post has 1 Reply |
  • 0 Followers
  • 1) I have to manage C1WebSchedule without Dialog Box. in the event BeforeAppointmentCreate I inserted  e.CancelEvent = True 
    but Dialog Box  is launched 
     
    2) solved point 1, how can I find ID unique of the appointment
     
    thanks

     

  • Hi,
     
    We can find the Unique ID (i.e.GUID) of an appointment in the following manner:
     
    BEGIN CODE
     
    protected void Page_Load(object sender, EventArgs e)

    {

    this.C1WebSchedule1.DataStorage.AppointmentStorage.Appointments.Clear();

    C1.C1Schedule.Appointment app1 = new C1.C1Schedule.Appointment();

    app1.Start = DateTime.Now;

    app1.End = DateTime.Now.AddHours(1);

    this.C1WebSchedule1.DataStorage.AppointmentStorage.Appointments.Add(app1);

    C1.C1Schedule.Appointment app2 = new C1.C1Schedule.Appointment();

    app2.Start = DateTime.Now.AddHours(1);

    app2.End = DateTime.Now.AddHours(2);

    this.C1WebSchedule1.DataStorage.AppointmentStorage.Appointments.Add(app2);

    Response.Write("GUID of App2 = " + app2.Key.GetValue(0).ToString()); //-------- This is the line of code which returns Unique ID of App2 object

    }

    END CODE
     
    Have nice day.
     
    Regards,
    Patrick
     
    <acallegari> wrote in message news:215227@10.0.1.98...
    1) I have to manage C1WebSchedule without Dialog Box. in the event BeforeAppointmentCreate I inserted  e.CancelEvent = True 
    but Dialog Box  is launched 
     
    2) solved point 1, how can I find ID unique of the appointment
     
    thanks

     



    http://helpcentral.componentone.com/cs/forums/p/78485/215227.aspx#215227

Page 1 of 1 (2 items)