Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once you've displayed a form with your control, synchronizing controls is easy. Simply set the Server property, and presuming you've passed the correct IP address and port number, the control will handle the rest. All you have to do is set your control properties as usual and the control will send data to the server to be synchronized with other controls.

...

The LockAppt method locks an appointment across all synchronized SRP Schedule Controls. This has the same effect as the SRP Schedule Control's ApptLocked property. Like all SRPSchedule methods, you should call this only when the SRP Schedule Control is unavailable.

...

The ApptID is the unique ID of the appointment to be locked. If the appointment doesn't exist, then nothing happens. If the appointment does exist, then the SRP Synchronization Server will lock the appointment on all connected SRP Schedule Controls. When this happens, all users will see the appointment with a padlock icon. It will not be unlocked until UnlockAppt is called or the ApptLocked property on any connected SRP Schedule Control is set to 0.

...

The LockAppt method unlocks an appointment across all synchronized SRP Schedule Controls. This has the same effect as setting the SRP Schedule Control's ApptLocked property to 0. Like all SRPSchedule methods, you should call this only when the SRP Schedule Control is unavailable.

...

The ApptID is the unique ID of the appointment to be unlocked. If the appointment doesn't exist, then nothing happens. If the appointment does exist, then the SRP Synchronization Server will unlock the appointment on all connected SRP Schedule Controls. When this happens, the padlock icon is removed and the users can resize and move the appointment. An appointment is locked when calling either LockAppt or setting the SRP Schedule Control's ApptLocked property to 1.

Code Block
// Unlock an appt  
If Get_Property(OleScheduleCtrl$, "OLE.ProgID") NE "" then 
   Set_Property(OleScheduleCtrl$, "OLE.ApptLocked[":ApptID:"]", 0) 
end else 
   ServerSendObj = OleCreateInstance("SRP.ScheduleSync") 
   If OleStatus() else 
       OleCallMethod(ServerSendObj, "UnlockAppt", "Bob", "127.0.0.1", "25000", ApptID) 
   end 
end

...

The NewAppt method adds a single new appointment to all synchronized SRP Schedule Controls. This has the same effect as the SRP Schedule Control's AddAppts method. Like all SRPSchedule methods, you should call this only when the SRP Schedule Control is unavailable. This is useful for updating remote schedules when a user creates a new appointment via an OpenInsight form.

...

The ApptInfo is a multi-valued parameter describing the new appointment. See the AppointmentList property for details on this structure.

If the appointment already exists, then nothing happens. If the appointment does not exist, then the SRP Synchronization Server will add the appointment to all connected SRP Schedule Controls. You can only add one appointment at a time, unlike the SRP Schedule Control's AddAppts method, which lets you add multiple appointments. For this reason, a single appointment is @FM delimited, whereas AddAppts requires that appointments be @VM delimited.

...

The RemoveAppt method removes a single appointment from all synchronized SRP Schedule Controls. This has the same effect as the SRP Schedule Control's RemoveAppts method. Like all SRPSchedule methods, you should call this only when the SRP Schedule Control is unavailable. This is useful for updating remote schedules when a user deletes an appointment via an OpenInsight form.

...

The ApptID is the unique ID of the appointment to be removed. If the appointment doesn't exist, then nothing happens. If the appointment does exist, then the SRP Synchronization Server will remove the appointment on all connected SRP Schedule Controls. You can only remove one appointment at a time, unlike the SRP Schedule Control's RemoveAppts method, which lets you remove multiple appointments.

...

The ApptInfo is a multi-valued parameter describing the appointment. See the AppointmentList property for details on this structure.

...

The UpdateEntity method updates a single existing entity for all synchronized SRP Schedule Controls. This has the same effect as the SRP Schedule Control's Entity property. Like all SRPSchedule methods, you should call this only when the SRP Schedule Control is unavailable. This is useful for updating remote schedules when a user modifies an appointment via an OpenInsight form.

...

The EntityInfo is a multi-valued parameter describing the entity. See the EntityList property for details on this structure.

...

The UpdateApptFlag method updates a single appointment's flag for all synchronized SRP Schedule Controls. This has the same effect as the SRP Schedule Control's ApptFlag property. Like all SRPSchedule methods, you should call this only when the SRP Schedule Control is unavailable. This is useful for updating remote schedules when a user modifies an appointment via an OpenInsight form.

...