Versions Compared

Key

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

...

Every appointment can have custom fields associated with them. Use this field to set or get an individual appointment's custom field value. If the field doesn't exist, it will simply return "". Think of it like the User Defined Property feature of OpenInsight. Instead of attaching custom data to a control, you can attach it to an individual appointment. This can make your code a lot cleaner by not having to maintain external lookup structures.

Use this property to set or get a single field for an individual appointment. You can name the field anything you want, but you cannot use . or ; characters. Getting this property returns the field's value or "" if the field doesn't exist.

Setting a field doesn't do anything visibly within the Schedule control. It's a convenient way to store additional data.

If you need to set several fields at once for an appointment, use the ApptFields property.

Example

Code Block
// Set a field
Set_Property(@Window:".OLE_SCHEDULE", "OLE.ApptFlag[Appt0001;CustomerId]", "0012") 

// Get a field
CustIdJobNum = Get_Property(@Window:".OLE_SCHEDULE", "OLE.ApptFlag[Appt0001;CustomerIdJobNum]")

See Also

ApptFields