Hi Rain / Lilian,
I am writing a custom report for 7.1 that will produce a nice set of tables for each class and its attributes. The XML for the template is:
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateInformationHeader name="tjaDocumentClasses" description="/" type="table" default="true"/>
<ProjectBaseInitiationBlock>
<!-- classes of project -->
<IterationBlock modelType="Class" allLevel="true">
<HasChildElementChecker type="Attribute" flag="true">
<!--Remove-->
<TableBlock colWidths="25, 75" tableWidth="16000" alignment="left">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StaticText content="Class Name: " isBold="true"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="name" style="Table Contents"/>
</TableCell>
</TableRow>
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StaticText content="Documentation: " isBold="true"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="documentation" style="Table Contents"/>
</TableCell>
</TableRow>
<HasChildElementChecker type="Attribute" flag="true">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StaticText content="Attributes: " isBold="true"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false" splitted="true">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StaticText content="Name" style="Column header 1"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StaticText content="Data Type" style="Column header 1"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StaticText content="Description" style="Column header 1"/>
</TableCell>
</TableRow>
<IterationBlock modelType="Attribute">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="name" style="Table Contents"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="type" style="Table Contents"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="documentation" style="Table Contents"/>
</TableCell>
</TableRow>
</IterationBlock>
</TableCell>
</TableRow>
</HasChildElementChecker>
</TableBlock>
<StaticText content="" style="Default"/>
<ParagraphBreak/>
</HasChildElementChecker>
</IterationBlock>
</ProjectBaseInitiationBlock>
</Template>
Which works perfectly…apart from when it gets to the attribute documentation element it returns it as the HTML from the model rather than plain text - Can you tell me what I am doing wrong?? its driving me nuts!
Many thanks
Toby