Hi,
I am doing some R&D work for a client of mine who use currently using a scheduling control called DayPilot. They are not satisfied with the existing controls display and hence the R&D.
To meet their unique business requirements and use their existing DB schema, I have used Advanced Edit Form. On the code behind I intercept the AdvancedCommand Event Handler to get the details of the users selection and insert them in the DB the way the client wants/needs. However, if there is an error in the insert, i.e. the appointment is not complying with their internal business logic, I retrieve the error label control from the advancededitform and set its value to the error but I can't seem to find a way to stop the window (popup) from closing. So the user never sees the error. There is no e.Cancel option. I tried putting a class CancelInsertEdit property and set that to true and then intercepted the AppointmentInsert handler in which I checked the class CancelInsertEdit and set e.Cancel there but the window still closes.
The other option would be to run the custom insert logic in AppointmentInsert handler, but I can't seem to retrieve the controls on the AdvancedEditTemplate in that event handler.
Any advice would be much appreciated.
Regards,
Mans.
I am doing some R&D work for a client of mine who use currently using a scheduling control called DayPilot. They are not satisfied with the existing controls display and hence the R&D.
To meet their unique business requirements and use their existing DB schema, I have used Advanced Edit Form. On the code behind I intercept the AdvancedCommand Event Handler to get the details of the users selection and insert them in the DB the way the client wants/needs. However, if there is an error in the insert, i.e. the appointment is not complying with their internal business logic, I retrieve the error label control from the advancededitform and set its value to the error but I can't seem to find a way to stop the window (popup) from closing. So the user never sees the error. There is no e.Cancel option. I tried putting a class CancelInsertEdit property and set that to true and then intercepted the AppointmentInsert handler in which I checked the class CancelInsertEdit and set e.Cancel there but the window still closes.
The other option would be to run the custom insert logic in AppointmentInsert handler, but I can't seem to retrieve the controls on the AdvancedEditTemplate in that event handler.
Any advice would be much appreciated.
Regards,
Mans.