Current filter:
                                You should refresh the page.
                                We apologize for the inconvenience. Our ordering system and the support center may be offline for a few hours on Sunday, May 19 due to maintenance tasks.
                                0
                                  • Please modify E977 to better illustrate how to work with custom fields that are bound to a database. As I will explain, I doubt I am the first, nor will I be the last with these questions.

                                    In the example E977, the only custom field added is a calcualted field. After reading the explainations (below) and tickets my head is spinning. For the beginner like myself the instructions in you knowledge base are not intelligible.

                                    Having said that, I find your examples clarify these concepts. Could you please add other custom fields like "contact"," location","description" to demonstrate adding plain text fields that are bound to a database?

                                    I have tried for hours to implement E977 into my winforms app without success:

                                    - I get the form to read the non-custom fields only. Strangely, If I change the label or status, nothing happens.

                                    - If I change the resource, nothing happens.

                                    - Incidently, the resource field allows me to select more than one resource, and I need it to allow ONLY one resource selection
                                    ie - an ppointment can only be in one room at a time

                                    I am confident that an update to E977 will show me the path to understanding and implementing these concepts.

                                    Thanks in advance for the assistance

                                    Harold

                                    In one set of instructions it reads:

                                    3. If your application's scheduling data contains some custom fields, which should also be edited and then saved via your custom Edit Appoinment form, then it's necessary to inherit from the AppointmentFormController class and write properties to support your mapped custom fields.

                                    4. If your custom form uses AppointmentLabelEdit , AppointmentStatusEdit or other controls which are bound to the SchedulerStorage, then you are required to dispose your form explicitly after use.

                                    Somewhere else it states:

                                    When creating your own appointment editing form, you should implement methods
                                    for initializing the form controls, input validation and saving the information
                                    using the descendant of the AppointmentFormController class.


                                    If your application's scheduling data contains custom fields, which should
                                    also be edited and then saved via your custom Edit Appoinment form, add
                                    properties of the AppointmentFormController descendant to support your mapped
                                    custom fields.

                                • Geoff Stokeld 08.19.2012

                                  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

                                • Harold Arkoff 1 08.22.2012

                                  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.

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                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.

                                Show all comments
                                • Harold Arkoff 1 08.20.2012

                                  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"

                                • Harold Arkoff 1 08.20.2012

                                  I will look at Geoff's examples. I will let you know how I fair...I 'm just a little frustrated at the moment.

                                • Harold Arkoff 1 08.20.2012

                                  In ticket Q423953, Elliot provided me with a sample code that should help.

                                • Harold Arkoff 1 08.20.2012

                                  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.

                                • Harold Arkoff 1 08.21.2012

                                  tried

                                    Private Sub appointmentResourcesEdit1_EditValueChanged(sender As System.Object, e As System.EventArgs) Handles appointmentResourcesEdit1.EditValueChanged
                                              Appointments.ResourceSharing = False
                                          End Sub

                                  but 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.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                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.