RelationshipInfo QML Type

  • Esri.ArcGISRuntime
  • RelationshipInfo
  • Information about the relationship between two tables. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.1
    Inherits:

    Object

    Properties

    Detailed Description

    Note: You cannot declare or create a component of this type in QML code.

    A RelationshipInfo identifies:

    • a table.
    • the related table that the table is related to.
    • the table's role in the relationship (origin or destination).
    • the relationship's cardinality.
    • whether this is a composite relationship.

    A table can participate in more than one relationship. Further, a table may be an origin table in one relationship and also a destination table in another relationship.

    The relationship's cardinality describes whether features in a table are related to only one feature in the other table, or whether a feature may be related to multiple features.

    In a simple relationship, the features in the participating tables can exist without the other. For example, a transformer and an electric pole may be related but one's existence does not depend on the other. Deleting the origin features will simply disassociate the destination features from the origin features.

    In a composite relationship, the destination features cannot exist without the origin features. When the origin feature is deleted, the related destination feature is deleted as well. This is called a cascade delete. This dependency also means that each destination feature must be linked to a counterpart origin feature.

    Property Documentation

    [read-only] cardinality : Enums.RelationshipCardinality

    Returns this relationship's cardinality (read-only).

    See also Enums.RelationshipCardinality.


    [read-only] isComposite : bool

    Returns whether the relationship is composite (read-only).

    In a composite relationship, a feature in the destination table must always be associated with an origin feature. Orphan features in the destination tables are not permitted. Therefore, destination table features will be deleted when their associated origin table features are deleted. (This is called a cascade delete.)


    [read-only] keyField : string

    Returns the key field of this table (read-only).

    This is the field that links the origin and destination tables of this relationship.


    [read-only, since Esri.ArcGISRuntime 100.12] keyFieldInRelationshipTable : string

    The key field in the relationship table (read-only).

    Used in many-to-many and attributed relationships. Values in this field will match values stored in the keyField of features participating in the relationship.

    This property was introduced in Esri.ArcGISRuntime 100.12.


    [read-only] name : string

    Returns the name of the relationship (read-only).


    [read-only] relatedTableId : string

    Returns the ID of the related table (read-only).

    Note: The underlying property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

    See also relatedTableIdAsInt.


    [read-only, since Esri.ArcGISRuntime 100.3] relatedTableIdAsInt : int

    The same as relatedTableId but represented as an integer type (read-only).

    Note: The underlying property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

    This property was introduced in Esri.ArcGISRuntime 100.3.


    [read-only, since Esri.ArcGISRuntime 100.2] relationshipId : string

    Returns the ID of this relationship, this is shared between origin and destination tables (read-only).

    Note: The underlying property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

    This property was introduced in Esri.ArcGISRuntime 100.2.

    See also relationshipIdAsInt.


    [read-only, since Esri.ArcGISRuntime 100.3] relationshipIdAsInt : int

    The same as relationshipId but represented as an integer type (read-only).

    Note: The underlying property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

    This property was introduced in Esri.ArcGISRuntime 100.3.


    [read-only, since Esri.ArcGISRuntime 100.12] relationshipTableId : string

    The ID of the relationship table.

    The default value is -1, indicating that no table exists (read-only). The relationship table is used in many-to-many and attributed relationships.

    This property was introduced in Esri.ArcGISRuntime 100.12.


    [read-only, since Esri.ArcGISRuntime 100.12] relationshipTableIdAsInt : int

    The same as relationshipTableId but represented as an integer type (read-only).

    Note: The underlying property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

    This property was introduced in Esri.ArcGISRuntime 100.12.


    [read-only] role : Enums.RelationshipRole

    Returns the role of the table in this relationship (read-only).

    See also Enums.RelationshipRole.


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.