eBiss 3

Hilfe & Dokumentation

User Tools

Site Tools


en:transformation:mappings:funktionen:gruppierung:buildhierarchy

Table of Contents

BuildHierarchy

The BuildHierarchy() function builds a tree structure over a list of nodes of identical type that are hierarchically related.
The relevant nodes (1st parameter) must have a key field (2nd parameter) that is referenced by another field within the child node (3rd parameter). The function returns a tree with the following structure:

<TreeResult>
	<RootNodes Key='X'>
		<Items></Items>
		<Nodes></Nodes>
	</RootNodes>
<TreeResul>

Syntax:

BuildHierarchy('Node', 'Key'.'Key of the parent node')

Sample:

BuildHierarchy('//SG_33', '@DE_1082'.'LIN/DG_C829/@DE_1082')

Note: Alternate solution Hierarchiebildung mit der Funktion SplitToArray()

en/transformation/mappings/funktionen/gruppierung/buildhierarchy.txt · Last modified: 2024/02/20 08:15 by 127.0.0.1