OpenWGA 7.11 - TMLScript reference

Nav
Method :

sourcesOfIncomingRelationGroups()
sourcesOfIncomingRelationGroups(attributes)
sourcesOfIncomingRelationGroups(relationGroup [, contentclass])

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

This method comes in three variants.

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

Variant 2 accepts a Lookup table "attributes" where the name of the accepted relation group to use would be expected as value under key "relationgroup" 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 group and content class.

Parameters

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.

relationGroup (String):

Variant 3. Name of a relation group 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