Class repRelationship
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class contains the details of a relationship in the repository.
public class repRelationship
- Inheritance
-
repRelationship
- Inherited Members
- Extension Methods
Properties
AllowedStates
Returns a list of states that a record in the destination table must be in to be a valid option for this foreign key.
public repStates AllowedStates { get; }
Property Value
AskOnInsertCaptionTC
Returns the question to use when asked on an add-new in a form.
public string AskOnInsertCaptionTC { get; }
Property Value
AskQuestion
Returns True if a value for this field is to be asked on an add-new in a form.
public bool AskQuestion { get; }
Property Value
AutoSelect
Returns True if this value is to be set automatically on ask-on-insert in an add-new if only one option is available.
public bool AutoSelect { get; }
Property Value
DeletionBehaviour
Returns the action to take when a delete takes place. One of: 'RESTRICTED', 'CASCADING', 'CASCADING_FORCED', 'NULLIFY', '' (empty for no action)
public string DeletionBehaviour { get; }
Property Value
DependendRelationships
Returns a list of relationships that are depending on this relationship.
public repRelationshipDependencies DependendRelationships { get; }
Property Value
DependsOnRelationships
Returns a list of relationships this relationship depends on.
public repRelationshipDependencies DependsOnRelationships { get; }
Property Value
DestinationField
Returns the repository field of the destination (the primary key field in the destination table).
public repField DestinationField { get; }
Property Value
DestinationFieldID
Returns the SysFieldID of the destination field (the primary key field in the destination table).
public int DestinationFieldID { get; }
Property Value
DestinationTable
Returns the destination table in the repository.
public repTable DestinationTable { get; }
Property Value
DestinationTableID
Returns the SysTableID of the destination table.
public int DestinationTableID { get; }
Property Value
FollowAllowed
Returns True if following this link (both up-stream and down-stream) is allowed.
public bool FollowAllowed { get; }
Property Value
Identifier
Returns a custom identifier for this relationship.
public string Identifier { get; }
Property Value
MultiInsertAllowed
Returns True if multiple records can be selected on an add-new in a form.
public bool MultiInsertAllowed { get; }
Property Value
Name
Returns the name
public string Name { get; }
Property Value
Notes
Returns the notes.
public string Notes { get; }
Property Value
ParentTableCondition
Returns a sql expression to set which values are allowed when selecting a (new) value.
public string ParentTableCondition { get; }
Property Value
ParentshipRelation
Returns if this relation marks a parentship.
public bool ParentshipRelation { get; }
Property Value
QuickInsertParent
Returns True if a parent can be quick-inserted from an options list for the source field.
public bool QuickInsertParent { get; }
Property Value
RelationshipCaptionTC
Returns a specific caption for this relationship.
public string RelationshipCaptionTC { get; }
Property Value
SourceField
Returns the source field in the repository (the foreign key field).
public repField SourceField { get; }
Property Value
SourceFieldID
Returns the SysFieldID of the source field (the foreign key field).
public int SourceFieldID { get; }
Property Value
SourceTable
Returns the source table in the repository (in which the foreign key resides).
public repTable SourceTable { get; }
Property Value
SourceTableID
Returns the SysTableID of the source table (in which the foreign key resides).
public int SourceTableID { get; }
Property Value
SysRelationshipID
Returns the SysRelationshipID as used in the repository.
public int SysRelationshipID { get; }
Property Value
Methods
CaptionTC(int)
Returns the caption for the specified SysGroupID.
public string CaptionTC(int pSysGroupID)
Parameters
pSysGroupID
intThe group to get the caption for.
Returns
- string
The caption.
GetRelatedItemsRecordSetSource(BudaDataSet, bool)
This function returns a recordset of the Source-table for records linked to the record in the destination-table
public string GetRelatedItemsRecordSetSource(BudaDataSet pBudaDataSet, bool pShowDeletedRecords = false)
Parameters
pBudaDataSet
BudaDataSetThe dataset containing the destination field.
pShowDeletedRecords
boolA boolean indicating that soft-deleted records are to be included in the list.
Returns
- string
A recordset with fields ID_ and Identifer_ for the list of related items.
QuickInsertParentAllowed(int)
Returns True if QuickInsertParent is actually allowed (combines the QuickInsertParent property with the permissions on the foreign table).
public bool QuickInsertParentAllowed(int pSysGroupID)
Parameters
pSysGroupID
intThe SysGroupID to get this permission for.
Returns
- bool
True if allowed.