Hi, I have a class called CustomAppointment which extends Appointment.I can add my custom appointments to the webdayview and display them sucessfully.
I would like to show appointments like this in the webdayviewthe ** are part of my custom class, how would i display these properties on the webdayview
Example3:00 ------------------------------------------------------------------------ | Appt Name **Room XX **Fee: **CustomStatus | | **Desc: This is my description |_________________________________________
aburningflame,
You will have to set the WebDayView's AppointmentFormatString property. The AppointmentFormatString property uses replacement-string flags (such as <SUBJECT>) that are defined in the WebScheduleInfo class; in order to get your CustomAppointment properties in the WebDayView, you will need to extend the WebScheduleInfo and add additional public static fields for these. For more information on the AppointmentFormatString property, please see this article in our online documentation. The WebScheduleInfo API can be found here.
~Kim~
Okay so I have my own class extending WebSchedule Info.
I have a property defined as
public static string FormatTag_ROOM_NO;
how do i set or get this string?
Example when I add an appointment
Appointment appt=new Appointment(wsInfo);appt.Subject="New Appt";appt.StartDate=start;appt.EndDate=end;wsInfo.Activities.Add(appt);Where would I set FormatTag_ROOM_NO for the webschedule info
You need to use it in the WebDayView's AppointmentFormatString property. If you take a look, its default value is: "<REMINDER_IMAGE> <RECURRENCE_IMAGE> <VARIANCE_IMAGE> <SUBJECT> (<LOCATION>)"
Each escape string corresponds to a "FormatTag_Xx" constaint in the WebScheduleInfo class (ex: "<SUBJECT>" = WebScheduleInfo.FormatTab_SUBJECT). You will need to add "<ROOM_NO>" somewhere in the AppointmentFormatString.
Hey, I Have looked at the format string and think I can figure that part out. However, I am struggling in another area.//Custom Schedule Infopublic class CustomInfo : WebScheduleInfo{ public static FormatTag_ROOM_NO; public CustomInfo():base(){}}Is this all I need to implement what I want?Also, since this is a custom info class, how do I add it to a page programatically?Page_Load(){ CustomInfo info=new CustomInfo(); Appointment appt=new Appointment(info); //set appt variables info.Activites.Add(appt); Page.Controls.Add(info); webdayview1.WebScheduleInfo=info;}Am i doing something wrong here?
Would just like to say thank you for your help so far, I really appreciate it.