The wsInfo.AppointmentFormPath has been set to my cutsom page.
The page comes up with no issue, how do I access the appointment id?
There does not appear to be a session object (I could be wrong) that has the value(s) and there is no query string on the request.
Thank you for posting in our community!
It seems there is not such method in the API to get an appointment by the id directly.I believe you could refer to the following sample where a similar approach is used. AppointmentFormPath is set pointing to the particular page AppointmentAdd.aspx. What is more, the appointments and resources are manually persisted using Session state.http://www.infragistics.com/samples/aspnet/schedule/bind-genericdataprovider-to-icollection Alternatively, it is worth to mention it is possible to get appointments based on the date using GetAppointmentsForDate.http://www.infragistics.com/community/forums/t/27618.aspx
Additional Info:ClientSide API is to be found here:http://help.infragistics.com/doc/ASPNET/2015.1/CLR4.0/?page=WebSchedule_CSOM.html
You could find the official documentation (including API) regarding WebScheduleInfo here: http://help.infragistics.com/Doc/ASPNET/2015.1/CLR4.0/?page=Web_WebScheduleInfo.html When working with AppointmentFormPath - The path of the Appointment Dialog, there are several point to keep in mind Guidelines for Customizing the Appointments and Reminders Forms
Unfortunately the information from the links did not work, for that matter the some sample code provided did not work.
Is there a way to just capture the double click on the monthview capture the id of the current appointment, and avoid the pop-up altogether?
In general there is no specific method to return the appointments in the current month, and yet it is possible to iterate trough the appointments collection and filter those which have the current month.
For example it is possible to use the following methods. var monthView= ig_getWebControlById("WebMonthView1"); var curmonth = monthView.getCurrentMonth() webScheduleInfo = monthView.getWebScheduleInfo() var activities = webScheduleInfo.getActivities()– gets all activities client side
Having activities object, the month it belong to could be retrieved in several ways. For example iterating trough each activity and accessing the required string part.
var firstActivity = activities firstActivity._props- returns a string containing the month it belongs to. An example of returned value could be for example: Wed Feb 25 2015 09:00:00 GMT+0200 (FLE Standard Time) Also it is possible to simply get the starting time for this appointments like: firstActivity.getStartDateTime(); The returned string will be the same Wed Feb 25 2015 09:00:00 GMT+0200 (FLE Standard Time)
MoreInfo:EnableAutoActivityDialog Property - Determines whether the appointment dialog is displayed when a day or appointment is double-clicked, or when the enter key is pressed when a day or appointment is selected. WebDayView General Properties sample http://www.infragistics.com/samples/aspnet/schedule/webdayview-general-properties