I am going through the testing and tyring out how to program the RAD Scheduler. I have created the SchedulerData database in MSSQL Server and then added 2 resources in the Resource table. After running the program, I did not see the data in the Resource List Box.
Following code is typed under the Load Event.
|
|||||||||||||
Dim resourceMappingInfo As New ResourceMappingInfo() | |||||||||||||
resourceMappingInfo.Id = "ID" | |||||||||||||
resourceMappingInfo.Name = "ResourceName" | |||||||||||||
SchedulerBindingDataSource1.ResourceProvider.Mapping = resourceMappingInfo | |||||||||||||
SchedulerBindingDataSource1.ResourceProvider.DataSource = SQLSchedulerDataDataSet.Resources |
' create and assign appointment mapping Dim appointmentMappingInfo As New AppointmentMappingInfo() |
appointmentMappingInfo.Start = "Start" |
appointmentMappingInfo.[End] = "End" |
appointmentMappingInfo.Summary = "Summary" |
appointmentMappingInfo.Description = "Description" |
appointmentMappingInfo.Location = "Location" |
appointmentMappingInfo.BackgroundId = "BackgroundID" |
appointmentMappingInfo.StatusId = "StatusID" |
appointmentMappingInfo.RecurrenceRule = "RecurrenceRule" |
appointmentMappingInfo.Resources = "FK_AppointmentsResources_Appointments" |
appointmentMappingInfo.ResourceId = "ResourceID" |
SchedulerBindingDataSource1.EventProvider.Mapping = appointmentMappingInfo |
SchedulerBindingDataSource1.EventProvider.DataSource = SQLSchedulerDataDataSet.Appointments |
In the appointment table I have the following fields
ID
Summary
Start
[End]
RecurrenceRule
MasterEventId
Location
Description
BackgroundId
and in the resource table I have the following fields
ID
Name
Image
Thanks for your help.