-
Hi Harold, It can be frustrating at times but stick with it as it is a great component. I was having similar problems to you and this example http://www.devexpress.com/Support/Center/Question/Details/Q405937 made it easier - it has everything including reminders. Hope VB is your language.
Regards, Geoff -
It was a struggle to say the least! Example Q423550Updated was the key. I undertood enough (about 85%) to make it work.
After several days and many hours, I am finally on my way.The trickest part was adding the appointmentresourceedit control. Of course, if I understood the code on day 1, I would have been days ago.
Like everything else in life, you have to start somewhere.
Thanks to everyone for your kind support.
Harold
-
Please feel free to contact us in the future. We will be glad to help you.
1 Solution
Hi,
Note that "location" and "description" fields can be mapped via regular (non-custom) mappings:
[VB.NET]this.schedulerStorage1.Appointments.Mappings.Description = "Description" this.schedulerStorage1.Appointments.Mappings.Location = "Location"
As for the "contact info" field, you can use the approach illustrated in the How to: Create a Custom EditAppointment Form with Custom Fields help section to implement custom field editing.
<<<
Incidently, the resource field allows me to select more than one resource, and I need it to allow ONLY one resource selection
>>>
Disable the AppointmentStorageBase.ResourceSharing option for this purpose.
Thanks,
Alessandro.
-
Thanks for the clarification re:location and description. That's easy. As for custom fields, which I have many, I am lost.
I cannot find a single example of code to demonstrate. Create a Custom EditAppointment Form with Custom Fields left me confused.The example E152 includes "Price", a calculated field which does not apply (overly complex).
I just need an example of a custom text and date/time custom field.
I have no idea how to translate "add properties of the AppointmentFormController descendant to support your mapped
custom fields" to code.I do believe the E977 should be update in the knowledge base. If not, is there another example I have overlooked?
PS - thanks for the tip "Disable the AppointmentStorageBase.ResourceSharing option for this purpose"
-
I will look at Geoff's examples. I will let you know how I fair...I 'm just a little frustrated at the moment.
-
In ticket Q423953, Elliot provided me with a sample code that should help.
-
AppointmentStorageBase.ResourceSharing=false already in my schedulecontrol storage.appointments.resourcesharing.
Specifically, how do I disable AppointmentStorageBase.ResourceSharing for "appointmentResourcesEdit1" in MyEditAppointmentform.vb code?
-
Note that AppointmentResourcesEdit Class is used to edit multiple resources. Use the AppointmentResourceEdit Class instead.
-
tried
Private Sub appointmentResourcesEdit1_EditValueChanged(sender As System.Object, e As System.EventArgs) Handles appointmentResourcesEdit1.EditValueChanged
Appointments.ResourceSharing = False
End Subbut recieved this error.
Error 1 Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
It is unclear how to fix? -
Are you still using AppointmentResourcesEdit Class control in your custom appointment form? As I mentioned in my previous comment, this control is used when ResourceSharing option is enabled. Please use the AppointmentResourceEdit Class control instead because in your scenario you wish to assign only a single resource to a certain appointment.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+