C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

exclude dialog Box

rated by 0 users
This post has 1 Reply | 0 Followers

Not Ranked
Posts 1
acallegari Posted: Wed, Mar 11 2009 9:49 AM
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

 

Top 10 Contributor
Posts 1,237
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) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.