OpenWGA 7.9 - TMLScript reference

Method :

sourcesOfIncomingRelations(relation [, contentclass])

On object Nav
Usage Returns a NavigatorResult for a navigator iterating over the source contents of incoming relations, just like <tml:navigator type="sourcesOfIncomingRelations"/>

This method comes in three variants.

Variant 1 retrieves all source contents whose relations point to the context document, no matter the relation name or source content class, and accepts no parametrization.

Variant 2 accepts a Lookup table "attributes" where the name of the accepted relation to use would be expected as value under key "relation" and the content class of source contents to retrieve would be expected as value under key "contentclass".

Variant 3 has separate parameters to specify relation and content class.


attributes (Lookup table):

Variant 2. Attributes to influence the navigator result. Use attribute names of <tml:navigator> as keys and the respective attribute values as values. Note however the exceptions to this usage documented on the Nav object.

relation (String):

Variant 3. Name of a relation that must point to the current context document for the source contents to be included in the results.

contentclass (String, optional):

Variant 3. A content class to which the source content must belong to be included in the results. Omitting will return source contents of all content classes.

Return value NavigatorResult
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events