Constructors

Methods

  • Returns the full relation definition for a given directional relation name (e.g. 'relApplicationToITComponent') from the enriched data model.

    Looks up the canonical (persisted) relation name via relationMapping, then returns the corresponding entry from relations. Returns null and logs a warning if directionalRelation is absent from relationMapping or if the resolved persisted name is not found in relations.

    Parameters

    • enrichedDataModel: EnrichedDataModel

      The enriched data model from lx.currentSetup.settings.dataModel

    • directionalRelation: string

      The directional relation name to look up (e.g. 'relApplicationToITComponent')

    Returns null | RelationDataModel

    The RelationDataModel definition, or null if not found

  • Returns true if the given relation has constraining relations defined — i.e. its valid targets are restricted by another relation on the same Fact Sheet.

    Parameters

    • enrichedDataModel: EnrichedDataModel

      The enriched data model from lx.currentSetup.settings.dataModel

    • relationName: string

      The directional relation name to check (e.g. 'relApplicationToITComponent')

    Returns boolean

    true if the relation has at least one constraining relation, false otherwise

Generated using TypeDoc