# Report Writer: Display Parent Model of Business Process Diagrams

**URL:** <https://forums.visual-paradigm.com/t/report-writer-display-parent-model-of-business-process-diagrams/11295>\
**Category:** General Questions/Discussions\
**Created:** [February 18, 2010, 10:26pm UTC](https://forums.visual-paradigm.com/t/report-writer-display-parent-model-of-business-process-diagrams/11295 "2010-02-18T22:26:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbarth](https://avatars.discourse-cdn.com/v2/letter/c/f1d935/32.png) [@cbarth](https://forums.visual-paradigm.com/u/cbarth)\
**Post date:** [February 19, 2010, 9:10am UTC](https://forums.visual-paradigm.com/t/report-writer-display-parent-model-of-business-process-diagrams/11295/1 "2010-02-19T09:10:09Z")

</div>

Hello,

i’m currently trying to adapt the Parent-Subtemplate for BusinessProcessDiagrams.

I tried some versions like the following, but nothing worked:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<Template>
	<TemplateInformationHeader name="Parent" description="/" type="table" default="false"/>
	<DiagramBaseInitiationBlock>
		<StaticText content="Parent" style="Heading 2 (VP)"/>
		<ParagraphBreak/>
		<HasParentModelChecker property="references" flag="true">
			<TableBlock colWidths="5000,5000" tableWidth="14500" alignment="right">
				<TableRow>
					<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
						<StaticText content="Name" style="Column header 1"/>
					</TableCell>
					<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
						<StaticText content="Type" style="Column header 1"/>
					</TableCell>
				</TableRow>
				<ParentModel>
					<TableRow>
						<TableCell leftBorderEnable="false" rightBorderEnable="false">
							<StringPropertyText propertyText="fullName" style="Table Contents"/>
						</TableCell>
						<TableCell leftBorderEnable="false" rightBorderEnable="false">
							<StringPropertyText propertyText="modelType" style="Table Contents"/>
						</TableCell>
					</TableRow>
				</ParentModel>
			</TableBlock>
		</HasParentModelChecker>
		<StaticText content="" style="Default"/>
	</DiagramBaseInitiationBlock>
</Template>

```

I’m ultimatively trying to display the Comments of a Model’s parent model.

Code is like the following (but not working, of course):

```auto
<?xml version="1.0" encoding="UTF-8"?>
<Template>
	<TemplateInformationHeader name="ParentComments" description="/" type="table" default="false"/>
	<DiagramBaseInitiationBlock>
		<StaticText content="ParentComments" style="Heading 2 (VP)"/>
		<ParagraphBreak/>
		<HasParentModelChecker property="references" flag="true">
				<ParentModel>
					<HasMetaModelPropertyChecker property="comments" flag="true">
						<StaticText content="Comments" style="Heading 3 (VP)"/>
						<TableBlock colWidths="30, 10, 10, 50" tableWidth="15500" alignment="right" rowBackgroundColors="#F0F0FF, #FFFFFF">
							<TableRow>
								<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
									<StaticText content="Summary" style="Column header 1"/>
								</TableCell>
								<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
									<StaticText content="Author" style="Column header 1"/>
								</TableCell>
								<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
									<StaticText content="Date Time" style="Column header 1"/>
								</TableCell>
								<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
									<StaticText content="Documentation" style="Column header 1"/>
								</TableCell>
							</TableRow>
							<ForEach property="comments">
								<TableRow>
									<TableCell leftBorderEnable="false" rightBorderEnable="false">
										<StringPropertyText propertyText="name" style="Table Contents"/>
									</TableCell>
									<TableCell leftBorderEnable="false" rightBorderEnable="false">
										<StringPropertyText propertyText="author" style="Table Contents"/>
									</TableCell>
									<TableCell leftBorderEnable="false" rightBorderEnable="false">
										<StringPropertyText propertyText="dateTime" style="Table Contents"/>
									</TableCell>
									<TableCell leftBorderEnable="false" rightBorderEnable="false">
										<StringPropertyText propertyText="documentation" style="Table Contents"/>
									</TableCell>
								</TableRow>
							</ForEach>
						</TableBlock>
					</HasMetaModelPropertyChecker>
				</ParentModel>
		</HasParentModelChecker>
		<StaticText content="" style="Default"/>
	</DiagramBaseInitiationBlock>
</Template>

```

How is this possible and what am i doing wrong?

I’d be thankful for any advice you can offer.  
-cbarth

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [February 19, 2010, 6:52pm UTC](https://forums.visual-paradigm.com/t/report-writer-display-parent-model-of-business-process-diagrams/11295/2 "2010-02-19T18:52:49Z")

</div>

Hi Cbarth,

Thanks for your post. I’ve forwarded the issue to our engineers to follow-up, and I’ll come back to you once there is any feedback.

Best regards,  
Lilian Wong

---

<div class="post-metadata">

**Author:** ![LilianWong](https://avatars.discourse-cdn.com/v2/letter/l/919ad9/32.png) [@LilianWong](https://forums.visual-paradigm.com/u/LilianWong)\
**Post date:** [February 22, 2010, 2:23pm UTC](https://forums.visual-paradigm.com/t/report-writer-display-parent-model-of-business-process-diagrams/11295/3 "2010-02-22T14:23:30Z")

</div>

Hi Cbarth,

Thanks for replying. The problem is that does not support getting parent from Diagram (we only support get parent from Model), and our engineers have enhanced Report Writer to support this so you can update to latest patch (sp1\_20100223h or later). Details about updating to latest patch can be found from:

> **[Update Visual Paradigm to Latest Patch - Visual Paradigm Know-how](https://knowhow.visual-paradigm.com/technical-support/update-to-patch/)**
>
> Upon receiving a problem report or request of enhancement, we do our best to make the necessary changes. You will then be suggested to update your Visual Paradigm installation to the patch release, in which the fix or enhancement has been made. In...

By the way, our engineers found a problem in your template, which is indicated in attached image. This mistake won’t affect your generated content, we just want to let you know. 🙂

Best regards,  
Lilian Wong

 ![](https://forums.visual-paradigm.com/uploads/default/original/2X/f/f3039d312b0d566103737dca3eff1c95ce382c25.png)  
incorrect\_content\_in\_template.png

---

<div class="post-metadata">

**Author:** ![cbarth](https://avatars.discourse-cdn.com/v2/letter/c/f1d935/32.png) [@cbarth](https://forums.visual-paradigm.com/u/cbarth)\
**Post date:** [March 3, 2010, 9:28pm UTC](https://forums.visual-paradigm.com/t/report-writer-display-parent-model-of-business-process-diagrams/11295/4 "2010-03-03T21:28:01Z")

</div>

Hi LilianWong,

thanks for the tip and thanks for solving my problem so fast 🙂

-cbarth

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [March 5, 2010, 1:24pm UTC](https://forums.visual-paradigm.com/t/report-writer-display-parent-model-of-business-process-diagrams/11295/5 "2010-03-05T13:24:31Z")

</div>

You’re welcome 🙂
