Diagram selection in custom report

Hello,

I try to display all diagrams with the comment summary “Test” which are subdiagrams of a model:


<?xml version="1.0" encoding="UTF-8"?>
<Template>
	<TemplateInformationHeader default="false" description="" icon="documentation" id="Test" name="Test" type="text"/>
	<DiagramElementBaseInitiationBlock>
		<ForEachSubDiagram>
			<HasMetaModelPropertyChecker property="comments" flag="true">
				<ForEach property="comments">
					<ValueConditionChecker property="name" operator = "equals" value = "Test" >
						<ParentModel>
							<ElementImage alignment="center" imageType="diagram"/>
							<ParagraphBreak/>
							<StaticText content="Diagram: " style="Figure Title"/>
							<StringPropertyText propertyText="name" style="Figure Title"/>
							<ParagraphBreak/>
							<StringPropertyText propertyText="documentation" style="Default"/>
							<ParagraphBreak/>
							<StaticText content="" style="Default"/>
						</ParentModel>
					</ValueConditionChecker>
				</ForEach>
			</HasMetaModelPropertyChecker>
		</ForEachSubDiagram>
	</DiagramElementBaseInitiationBlock>
</Template>

The check itself works, but I’m not able to get the diagram from inside the ForEach Loop. Could you tell me what I must change?

Best regards
Thorsten

Hi Thorsten,

We are sorry that currently you can only query the element being looped, but not its parent, grandparent and so forth.

Best regards,
Jick Yeung