Output Entity’s Sample Data using Doc. Composer
-
Go to Tools > Doc. Composer . -
Select Build Doc. From Scratch . -
Select entity in Model Explorer tree. -
Right click on any template in Template pane and select Duplicate from popup menu. -
Name the template as Sample Records . -
Replace the content of the template as follow. <? xml version="1.0" encoding="UTF-8"?> <ElementBaseInitiationBlock> <Icon/> <Property property="name" style="Title"/> <ParagraphBreak/> <Text style="Intense Quote">Sample Records</Text> <TableBlock tableStyle="Summaries"> <TableRow> <IterationBlock modelType="DBColumn"> <TableCell> <Property property="name"/> </TableCell> </IterationBlock> </TableRow> <ModelElementProperty property="records"> <IterationBlock modelType="EntityRecord"> <Sortings noSort="true"/> <TableRow> <IterationBlock modelType="EntityRecordCell"> <TableCell> <ModelElementPropertyConditionChecker property="value"> <Conditions> <ValueChecker property="modelType" value="EntityRecordCell"/> </Conditions> <ModelElementProperty property="value"> <Property property="value"/> </ModelElementProperty> </ModelElementPropertyConditionChecker> <ValueChecker property="value" value="unnamed" operator="not equals"> <Property property="value"/> </ValueChecker> </TableCell> </IterationBlock> </TableRow> </IterationBlock> </ModelElementProperty> </TableBlock> </ElementBaseInitiationBlock> -
Press Save button and close the Edit Template dialog. -
Drag the Sample Records template into document editor.
Explanation of the Template
<? xml version="1.0" encoding="UTF-8"?> <ElementBaseInitiationBlock> <Icon/> <Property property="name" style="Title"/> <ParagraphBreak/> <Text style="Intense Quote">Sample Records</Text>
<TableBlock tableStyle="Summaries"> <TableRow> <IterationBlock modelType="DBColumn"> <TableCell> <Property property="name"/> </TableCell> </IterationBlock> </TableRow>
<ModelElementProperty property="records"> <IterationBlock modelType="EntityRecord"> <Sortings noSort="true"/> <TableRow> <IterationBlock modelType="EntityRecordCell"> <TableCell> <ModelElementPropertyConditionChecker property="value"> <Conditions> <ValueChecker property="modelType" value="EntityRecordCell"/> </Conditions> <ModelElementProperty property="value"> <Property property="value"/> </ModelElementProperty> </ModelElementPropertyConditionChecker> <ValueChecker property="value" value="unnamed" operator="not equals"> <Property property="value"/> </ValueChecker> </TableCell> </IterationBlock> </TableRow> </IterationBlock> </ModelElementProperty>
|
|