サーバー管理 > レポート > レポート レシピの作成 > レポート レシピへのグループ計算の追加
  
レポート レシピへのグループ計算の追加
ユーザーは、グループ化レポート内の複数のフィールドにわたって計算が行えるレポートを求めています。このような機能があると、レポート内のグループ化されたアイテムについての複雑なメトリックが得られます。
グループ計算タグをグループ化レポート レシピに追加し、複数のアイテム フィールドにわたって計算を実行します。グループ計算は、アイテム グループ内の複数のフィールドに適用されます。
次に例を示します。
<%version 1%>
<%description <b>Description: </b>This is a report that uses
Windchill RVS group compute report tags.<br><br>%>
<%param name="reporttitle" type="String" prompt="Report Title"
value="" description="Descriptive title for your report."%>
<%param name="reportheader" type="MultiString" prompt="Report
Header" value="" description="Text appearing at the top of the
report page."%>
<%param name="reportfooter" type="MultiString" prompt="Report
Footer" value="Confidential - Internal Use Only"
description="Text appearing at the bottom of the report page."%>
<%param name="groupcomputeheading" type="String" prompt="Group
Compute Heading" value="Group Metrics" description="This is
displayed at the top of the group compute area."%>
<html>
<head>
<title>Group Compute Report</title>
<%screenStyleSheet%>
<%printerStyleSheet%>
</head>
<%dateformat%>
<%datetimeformat%>
<%sortby &sortby%>
<body>
<span class="logo"><%logoURL%></span>
<p class="title">&reporttitle</p>
<p class="header">&reportheader</p>
<div align="right" class="date"><%currentdate%></div>
<table class="display">
<tr><td colspan="&#fields"><hr class="hr_default"></td></tr>
<!-- Display item field headings -->
<tr>
<%iteratefields%>
<th class="heading1">&fielddisplayname</th>
<%/iteratefields%>
</tr>
<tr><td colspan="&#fields"><hr class="hr_default"></td></tr>
<%groupby &groupby%>
<!-- Display first group heading -->
<tr>
<td colspan="&#fields" class="grouping1">
<%groupname%>: <%groupvalue%>
</td>
</tr>
<!-- Display item field values -->
<%begindetail%>
<tr>
<%iteratefields%>
<td class="border">&fieldname</td>
<%/iteratefields%>
</tr>
<%enddetail%>
<!-- Display group compute -->
<tr class="right">
<td colspan="&#fields">
<table class="list2">
<tr>
<th colspan="2">&groupcomputeheading</th>
</tr>
<%iterategroupcompute%>
<tr>
<td class="bold"><%groupcomputelabel%></td>
<td><%groupcompute%></td>
</tr>
<%/iterategroupcompute%>
</table>
</td>
</tr>
<tr><td colspan="&#fields"><hr class="hr_default"></td></tr>
<%endgroup%>
<tr><td colspan="&#fields"><hr class="hr_default"></td></tr>
</table>
<span class="footer">&reportfooter</span>
<div align="center">
<a href="<%weburl%>im/runreport?selection=&currentReportName">
<img src="<%weburl%>Report_Recipe/re-run_report.gif"
align="middle" border="0">
</a>
</div>
</body>
</html>