I have the need to be able to launch the edit form of the scheduler from a control other than the scheduler itself (a button in this case).
The code below retrieves the appointment, etc... and all of it works perfectly in the debugger. I thought all I needed to call was editappointment, but the advedit template is never shown and the code behind method (form created, etc...) are never hit.
What am I doing that is so painfully wrong that I cannot see it? :)
The code below retrieves the appointment, etc... and all of it works perfectly in the debugger. I thought all I needed to call was editappointment, but the advedit template is never shown and the code behind method (form created, etc...) are never hit.
What am I doing that is so painfully wrong that I cannot see it? :)
| function Huh(sender, e) { |
| // Find the scheduler |
| var rsScheduler = $find('ctl00_ContentPlaceHolder1_rsScheduler'); |
| // Get the variable for the active lease |
| var nActiveLeaseID = document.getElementById("ctl00_ContentPlaceHolder1_m_nActiveLease"); |
| // Get the appointments from the schduler |
| var Appointments = rsScheduler.get_appointments(); |
| // Get our appointment |
| var MyAppt = Appointments.findByID(nActiveLeaseID.value); |
| //Edit the appointment |
| rsScheduler.editAppointment(MyAppt); |
| } |