Click or drag to resize

IContact Methods

The IContact type exposes the following members.

Methods
  NameDescription
Public methodCode exampleCancelChanges
Undo any changes made since the object was loaded. If you made changes to the model that you don’t want to be saved to the database, call the CancelChanges method
Public methodCode exampleChangeIdentity
Loads a different record into the object. Causes changes to the existing object to be saved first. Saves the changes made to the contact model to the database. The last thing you do to an object if you want the changes you made to be saved. The ChangeIdentity method calls the save method first
Public methodCopy
Creates a new copy of this contact, optionally with a copy of the persons belonging to it as well. New in Seven.
Public methodCode exampleDelete
Delete the object from the database. May throw an error if you are not allowed to delete the object. Deletes the specified contact model from the database. This may take some time, since this will call a cascade delete on contact persons, phones, addresses, emails, URLs and so on
Public methodGetActivityList
Public methodCode exampleGetPersons
Get the persons attached to this contact. Hidden persons are filtered out.
Public methodCode exampleGetProjects
Get the projects that this contact's persons are members of. Duplicate projects are eliminated. Get the projects that this contact's persons are members of. Duplicate projects are eliminated.
Public methodCode exampleGetRelations
Get all relations with connection to this contact
Public methodMergeTo
Merge this contact into the passed contact, together with the persons and appointments that belongs to this contact. New in Seven.
Public methodCode exampleSave
Persist the object to the database. May throw an error if you are not allowed to save changes to the object. Saves the changes you made to the contact model to the database, does not return the new data from the database
Public methodCode exampleSetDefaults
Populate the object with default values, such as setting the owner to the current user. Uses the UserPreferences table to set the predefined default settings for a contact (company). The SetDefaults method is only available for current objects in this version of SuperOfficeDB Type Library
Top
See Also