ig.scheduler.AppointmentQueryResult
Remarks
An implementation of the ScheduleDataSource.getAppointmentsInRange method may require asynchronous interaction with the underlying data store in order to execute the query.
In such cases, the GetAppointmentsInRange method returns synchronously, and marks the OperationResultBase.status property for the result as 'Pending'. Upon return, the caller can then register as a listener of the OperationResultBase.completed event, which occurs when the query has been fully executed.
A typical pattern for handling the result is to check the Status property, and if 'Pending' is returned, register as a listener of the Completed event, specifying a delegate to be called when the result completes. If 'Completed' is returned, as would be the case for a data source which executes the query synchronously, the caller can then directly call the Completed event handler, thus ensuring that the same action takes place regardless of whether the query is executed synchronously or asynchronously.
Dependencies
-
appointments
- .appointments( );
Returns the list of appointments selected by the query.
Remarks
This property returns an empty list when no appointments meet the criteria specified in the activity query.
The list is sorted primarily by the value of the ActivityBase.start property; for two appointments with the same exact start date, the are sorted by their duration (with the longer duration appearing first), and finally, by the alphabetical order of their respective subjects.
-
appointments
- .appointments( value:ig.IList`1 );
Returns the list of appointments selected by the query.
- value
- Type:ig.IList`1
Remarks
This property returns an empty list when no appointments meet the criteria specified in the activity query.
The list is sorted primarily by the value of the ActivityBase.start property; for two appointments with the same exact start date, the are sorted by their duration (with the longer duration appearing first), and finally, by the alphabetical order of their respective subjects.