Click or drag to resize

SORelation Properties

The SORelation type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleActiveText
ActiveText The text for the active side of the relation, e.g. SuperOffice ASA owns SuperOffice Sweden AB, then owns is the active text
(Inherited from IRelation.)
Public propertyCode exampleChanged
has record been changed since read? If the relation has been modified since it was loaded, this will return false.
(Inherited from IRelation.)
Public propertyCode exampleComment
Comment The relations description textbox - it may contain text describing the relation. Filled out by the user
(Inherited from IRelation.)
Public propertyCode exampleCreatedAssociate
The user that created the object The associate that first created the relation
(Inherited from IRelation.)
Public propertyCode exampleCreatedDate
The date the object was saved to the database. The date and time the relation was first created
(Inherited from IRelation.)
Public propertyExternalFieldChanged
have external fields been changed?
(Inherited from IRelation.)
Public propertyCode exampleGroupID
GroupId This property is currently not in use and will just return 0.
(Inherited from IRelation.)
Public propertyCode exampleIdentity
The primary key on the primary table. Is zero for new objects. Is set when an object is saved. This is the internal ID of the relation
(Inherited from IRelation.)
Public propertyCode exampleIsAvailable
is record available in db? Checks if the record is available in the database. It’s useful to check if a project actually exists before adding new properties to it.
(Inherited from IRelation.)
Public propertyCode exampleIsRequiredFilled
Are all the required fields filled out? Can we save the record? Checks if all properties that are required in this model is filled
(Inherited from IRelation.)
Public propertyCode exampleIsValid
does the record exist? To save time, we don't load a record into buffer before one of its properties is asked for. This checks if the requested record is available in buffer
(Inherited from IRelation.)
Public propertyCode examplePassiveText
PassiveText The text for the passive side of the relation, e.g. SuperOffice ASA is owned by SuperOffice Sweden AB, then is owned by is the passive text
(Inherited from IRelation.)
Public propertyCode exampleReversed
Reversed This property is currently not in use
(Inherited from IRelation.)
Public propertyCode exampleSentry
Sentry settings for this object. Lets you find out your read/write access to the object.
(Inherited from IRelation.)
Public propertyCode exampleSourceRecord
SourceRecord object Depending on what type of relation this is, and what SourceTable the relation has, this will return a SOContact object or a SOPerson object
(Inherited from IRelation.)
Public propertyCode exampleSourceTable
SourceTable - derived from the SourceRecord This return the Table id (see the database manual) for the source record, either the person table (table id = 6) or the contact table (table id = 5).
(Inherited from IRelation.)
Public propertyCode exampleTargetRecord
TargetRecord Depending on what type of relation this is, and what TargetTable the relation has, this will return a SOContact object or a SOPerson object
(Inherited from IRelation.)
Public propertyCode exampleTargetTable
TargetTable This return the Table id (see the database manual) for the source record, either the person table (table id = 6) or the contact table (table id = 5).
(Inherited from IRelation.)
Public propertyCode exampleType
Type The relation types internal database id, all definitions are stored in the RelationDefinition table. The id returned is the reldef_id for the ActiveText and PassiveText of a relation.
(Inherited from IRelation.)
Public propertyCode exampleUpdatedAssociate
The last user to modify the object The last associate that updated this relation object. If the relation has never been updated, this will return 0
(Inherited from IRelation.)
Public propertyCode exampleUpdatedDate
The date of the most recent update. The date and time the relation was last edited. If the relation has never been updated, this will return 0; formatted as a SuperOffice date (see the database manual), this will return 01.01.1970
(Inherited from IRelation.)
Public propertyValidationMessage
get validation message, if empty model will think it is ok to save
(Inherited from IRelation.)
Top
See Also