显示组件

您可以使用标记和属性来更改报告模板中的显示组件。
表 1. 显示组件
组件 描述 标记和属性 示例
fp:attrstat1d 显示一个属性的统计信息。用户界面中的信息可能不同于报告中的信息。 例如,用户界面会同时使用条块和数字,但是报告只会使用数字。 本组件具有通用属性、通用标记和以下标记:
  • attrId:类型为 attrParam 的必需标记,包含要为其生成统计信息的属性。attrParam 的主标识是名为 viewId 的 viewParam 标识。
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • sumAttrId:类型为 attrParam 的可选标记 (type="numbertext"),包含被用作“总和”属性的属性。attrParam 的主标识是名为 viewId 的 viewParam 标识。缺省设置是不使用总和标准。而是计算元素的数量。
  • sumCritId:类型为 critParam 的可选标记,包含被用作“总和”标准的标准。critParam 的主标识是名为 viewId 的 viewParam 标识。缺省设置是不使用总和标准,但要计算元素的数量。
  • showElementLists:类型为 checkboxParam 的可选标记,可确定是否必须显式列出元素的标题。 如果该值为 true,那么会忽略 sumAttrId 和 sumCritId。如果该值为 false,那么不会显示标题,但会显示元素的数量或属性或标准的总和。缺省值为 false。
  • valueAttrId:类型为 attrParam 的可选标记,包含收集属性值时所使用的属性。attrParam 的主标识是名为 viewId 的 viewParam 标识。缺省设置是不收集属性值;而是计算元素的数量。
<fp:attrstat1d
	descr="Attribute Statistics for one attribute" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="viewId"
		descr="The view"
	/>
	<fp:attrParam
		changeable="template"
		id="102"
		name="attrId"
		masterid="101"
		descr="The attribute"
	/>
	<fp:attrParam
		changeable="template"
		id="103"
		name="sumAttrId"
		masterid="101"
		type="numbertext"
		descr="The sum attribute"
	/>
	<fp:checkboxParam
		changeable="runtime"
		id="104"
		name="showElementLists"
		descr="Click here to list the titles of the elements"
		 defaultvalue="true"
	/>
<fp:attrstat1d>
fp:attrstat2d 显示两个属性的统计信息。 用户界面中的信息可能不同于报告中的信息。 本组件具有通用属性、通用标记和以下属性及标记:
  • firstcolumnwidth:可选属性,可确定包含元素标题的第一列的宽度。 有关更多信息,请参阅 fp:defaultattrstat2dfirstcolumnwidth 和 fp:defaultattrstat2dlastcolumnwidth。缺省值是 fp:defaultattrstat2dfirstcolumnwidth 所指定的值。 如果未使用 fp:defaultattrstat2dfirstcolumnwidth,那么缺省值为 100。
  • lastcolumnwidth:可选属性,可确定包含行总和的最后一列的宽度。有关更多信息,请参阅 fp:defaultattrstat2dfirstcolumnwidth 和 fp:defaultattrstat2dlastcolumnwidth。缺省值是 fp:defaultattrstat2dlastcolumnwidth 所指定的值。 如果未使用 fp:defaultattrstat2dlastcolumnwidth,那么缺省值为 100。
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • xAttrId:类型为 attrParam 的必需标记,可指定位于 X 轴上的要为其生成统计信息的属性。attrParam 的主标识是名为 viewId 的 viewParam 标识。
  • yAttrId:类型为 attrParam 的必需标记,可指定位于 Y 轴上的要为其生成统计信息的属性。attrParam 的主标识是名为 viewId 的 viewParam 标识。
  • showElementLists:类型为 checkboxParam 的可选标记,可确定是否显式列出元素的标题。 如果该值为 true,那么会忽略 sumAttrId 和 sumCritId。如果该值为 false,那么不会显示标题。而是显示元素的数量或属性或标准的总和。
  • sumAttrId:类型为 attrParam 的可选标记 (type="numberext"),包含被用作“总和”属性的属性。attrParam 的主标识是名为 viewId 的 viewParam 标识。缺省值是不使用属性总和;而是计算元素的数量。
  • sumCritId:类型为 critParam 的可选标记,包含被用作“总和”标准的标准。critParam 的主标识是名为 viewId 的 viewParam 标识。缺省值是不使用总和标准;而是计算元素的数量。
  • valueAttrId:类型为 attrParam 的可选标记,包含收集属性值时所使用的属性。attrParam 的主标识是名为 viewId 的 viewParam 标识。缺省值是不收集属性值;而是计算元素的数量。
<<fp:attrstat2d
	descr="Attribute Statistics for two attribute" >
	firstcolumnwidth="200"
	lastcolumnwidth="50" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="viewId"
		descr="The view"
	/>
	<fp:attrParam
		changeable="template"
		id="102"
		name="xAttrId"
		masterid="101"
		descr="The attribute on the X axis"
	/>
	<fp:attrParam
		changeable="template"
		id="103"
		name="yAttrId"
		masterid="101"
		descr="The attribute on the Y axis"
	/>
	<fp:attrParam
		changeable="runtime"
		id="104"
		name="sumAttrId"
		masterid="101"
		descr="The sum criterion
	/>
	<fp:checkboxParam
		changeable="runtime"
		id="105"
		name="showElementLists"
		descr="Click here to list the titles of the elements"
		 defaultvalue="true"
	/>
<fp:attrstat2d>>
fp:choicehistory1 显示随时间的推移而变化的变更选项历史记录。在用户界面中,您可以选择详细的时间线或甘特图。在报告中,只能使用详细的时间线。 本组件具有通用属性、通用标记和以下标记:
  • attrId:类型为 attrParam 的必需标记 (type="choice"),可指定要为其生成选项统计信息的属性。 attrParam 的主标识是名为 viewId 的 viewParam 标识。
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
<fp:choicehistory1
	descr="Changes Over Time" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="viewId"
		descr="The view"
	/>
	<fp:attrParam
		changeable="template"
		id="102"
		name="attrId"
		masterid="101"
		type="choice"
		descr="The attribute"
	/>
</fp:choicehistory1>
fp:choicehistory2 显示变更数的选项历史记录。 本组件具有通用属性、通用标记和以下标记:
  • attrId:类型为 attrParam 的必需标记 (type="choice"),可指定要为其生成选项统计信息的属性。 attrParam 的主标识是名为 viewId 的 viewParam 标识。
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • displayDays:类型为 checkboxParam 的可选标记,可确定所显示的单位应该是天数还是小时数。如果该值为 true,那么会显示天数。如果该值为 false,那么会显示小时数。缺省值为 false。
<fp:choicehistory2
	descr="Number of Changes" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="viewId"
		descr="The view"
	/>
	<fp:attrParam
		changeable="template"
		id="102"
		name="attrId"
		masterid="101"
		type="choice"
		descr="The attribute"
	/>
<fp:checkboxParam
		changeable="template"
		id="103"
		name="displayDays"
		descr="Count number of days (not hours)"
		defaultvalue="false"
	/>
</fp:choicehistory2>
fp:choicehistory3 显示“时间/值”的选项历史记录。 fp:choicehistory3 组件具有与 fp:choicehistory2 相同的属性和标记。
<fp:choicehistory3
	descr="Time/ Value" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="viewId"
		descr="The view"
	/>
	<fp:attrParam
		changeable="template"
		id="102"
		name="attrId"
		masterid="101"
		type="choice"
		descr="The attribute"
	/>
<fp:checkboxParam
		changeable="template"
		id="103"
		name="displayDays"
		descr="Count number of days (not hours)"
		defaultvalue="false"
	/>
</fp:choicehistory3>
fp:choicehistory4 显示历史记录图的选项历史记录。 本组件具有通用属性、通用标记和以下标记:
  • attrId:类型为 attrParam 的必需标记 (type="choice"),可指定要为其生成选项统计信息的属性。 attrParam 的主标识是名为 viewId 的 viewParam 标识。
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • size:类型为 intParam 的可选标记,可确定历史记录图的大小。
    • 0:特别小
    • 1:小
    • 2:中(缺省值)
    • 3:大
    • 4:特别大
<fp:choicehistory4
	descr="History Graph" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="viewId"
		descr="The view"
	/>
	<fp:attrParam
		changeable="template"
		id="102"
		name="attrId"
		masterid="101"
		type="choice"
		descr="The attribute"
	/>
<fp:intParam
		changeable="runtime"
		id="103"
		name="size"
		descr="The size of the graph (0-4)"
		defaultvalue="1"
	/>
</fp:choicehistory4>
fp:table 显示表中元素的所有属性值。如果存在很多属性,那么该表会拆分为两个或更多个较小的表。在普通报告中,将按树形结构顺序对元素进行排序。在快速报告中,元素的排序方式与其在用户界面中的排序方式相同。 本组件具有通用属性、通用标记和以下标记:
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • attr_Titleattr_Prefix:类型为 intParam 的可选标记,可更改列的宽度。例如,如果 attr_Title 的值为 150,那么包含“标题”属性的列将宽于普通宽度。缺省值为 100。
    注: 某些列(如,所有的文件属性和大型文本属性)已宽于缺省大小。attr_*** intParam 标记的值只能在 XML 中设置。
  • includeDimmed:类型为 checkboxParam 的可选标记,可确定是否要在报告中显示暗灰色的文件夹。缺省值为 true。
  • width:类型为 intParam 的可选标记,可确定表的大小。缺省值为 100。
<fp:table
	descr="Attribute table for a view" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="viewId"
		descr="The view"
	/>
	<fp:checkboxParam
		changeable="runtime"
		id="102"
		name="includeDimmed"
		descr="Include dimmed folders"
		defaultvalue="false"
	/>
	<fp:intParam
		changeable="runtime"
		id="103"
		name="width"
		descr="The width of the table"
		defaultvalue="125"
	/>
	<fp:intParam
		changeable="never"
		id="104"
		name="attr_Prefix"
		descr="The width of the Prefix column"
		defaultvalue="50"
	/>
	<fp:intParam
		changeable="nevre"
		id="105"
		name="attr_Description"
		descr="The width of the Descripiton column"
		defaultvalue="200"
	/>
</fp:table>
fp:traceability 显示两个视图之间的所有链接。在用户界面中,可跟踪性矩阵中的链接是以箭头形式显示的,但在报告中则是以列表形式显示的。 本组件具有通用属性、通用标记和以下标记:
  • xViewId:包含视图标识的必需标记。
  • yViewId:包含视图标识的必需标记。yViewId 可能与 xViewId 相同。
<fp:traceability
	descr="History Graph" >
	<fp:viewParam
		changeable="template"
		id="101"
		name="xViewId"
		descr="One of the views"
	/>
	<fp:viewParam
		changeable="template"
		id="102"
		name="yViewId"
		descr="The other view"
	/>
	</fp:traceability>
fp:tree 以树结构形式显示所有的元素及其属性值。如果该树在 fp:chapter 中,那么它就是目录(如果已生成)的一部分。如果某树被直接放置在 fp:reporttemplate 标记下,那么该树不会成为目录的一部分。您可以将树放置在隐藏的章节中。 本组件具有通用属性、通用标记和以下属性及标记:
  • attrnamestyle:该可选属性可确定属性名称的打印方式。有关更多信息,请参阅 fp:defaultattrnamestyle。缺省值为 fp:defaultattrnamestyle 所指定的值。 如果未使用 fp:defaultattrnamestyle,那么缺省值为 attrnamestyle=""(没有额外的属性名称样式)。
  • hidetopelement:可选属性,可隐藏或显示树中的顶级元素。如果该值为 false,那么不会隐藏顶级元素。缺省值为 false。
  • nlbeforetreefolders:可选属性,可指定是否在 fp:tree 的标题前面新添一行。有关更多详细信息,请参阅 fp:defaultnlbeforetreefolders。如果该值为 false,那么会在标题前面新插入一行。缺省值为 fp:defaultnlbeforetreefolders 所指定的值。如果未使用 fp:defaultnlbeforetreefolders,那么缺省值为 false。
  • nodesbeforefolders:可选属性,可确定是要先显示节点(非文件夹)还是先显示文件夹。 仅当树中的一个或多个文件夹同时包含节点和文件夹时,才能应用该属性。有关更多信息,请参阅 fp:defaultnodesbeforefolders。 如果该值为 false,那么会先列出文件夹。缺省值为 fp:defaultnodesbeforefolders 所指定的值。如果未使用 fp:defaultnodesbeforefolders,那么缺省值为 false。
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • flat:类型为 checkboxParam 的可选标记。如果该值为 false,那么该树会显示为实际的树。如果该值为 true,那么树中的元素都会显示在同一级别上,树结构会被忽略。缺省值为 false。
  • includeDimmed:类型为 checkboxParam 的可选标记,可确定暗灰色的文件夹是否包含在树结构中。 缺省值为 true。
<fp:tree
		attrnamestyle="underline"
		hidetopelement="false"
		nodesbeforefolders="true"
		nlbeforetreefolders="false"
		descr="A tree view" >
		<fp:viewParam
			changeable="template"
			id="101"
			name="viewId"
			descr="The view"
		/>
	<fp:checkboxParam
			changeable="runtime"
			id="101"
			name="flat"
			descr="Click here to draw a flat tree"
			defaultvalue="false"
		/>
	<fp:checkboxParam
		changeable="runtime"
		id="103"
		name="includeDimmed"
		descr="Click here to Include dimmed folders"
		defaultvalue="false"
	/>
</fp:tree>
fp:whatsnew 显示要生成历史记录的属性的变更列表。 本组件具有通用属性、通用标记和以下标记:
  • scope:类型为 stringParam 的必需标记,可确定要显示期间所进行的属性变更的时间段:
    • logout:在最近一次注销之后进行的变更
    • 2ndlogout:在倒数第二次注销之后进行的变更
    • 3rdlogout:在倒数第三次注销之后进行的变更
    • 0:1 小时之内的变更
    • 1:8 小时之内的变更
    • 2:24 小时之内的变更
    • 3:1 周之内的变更
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • attrId:类型为 attrParam 的可选标记,可确定要显示属性的哪些变更。如果未设置该值,那么将显示属性的所有变更。该标记的主标识是名为 viewId 的 viewParam 标识。缺省情况下,不会设置任何值。
  • memberId:类型为 memberParam 的可选标记,可确定要显示成员的哪些变更。如果未设置该值,那么将显示成员的所有变更。缺省情况下,不会设置任何值。
<fp:whatsnew
	descr="A list of recent changes">
	<fp:stringParam
		changeable="template"
		id="101"
		name="scope"
		descr="Enter scope (logout, 0-3)
	/>
	<fp:viewParam
		changeable="template"
		id="102"
		name="viewId"
		descr="The view"
	/>
	<fp:attrParam
		changeable="template"
		id="103"
		name="attrId"
		masterid="102"
		descr="An attribute"
	/>
	<fp:memberParam
		changeable="runtime"
		id="106"
		name="memberId"
		descr="A member"
	/>
</fp:whatsnew>
fp:gantt 显示会按时间线绘制日期属性的甘特图。 本组件具有通用属性、通用标记和以下标记:
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • iconpos:类型为 intParam 的可选标记,可确定图标的位置:
    • 1:在线上方
    • 2:在线上
    • 3:在线下方(缺省值)
    • 4:无图标
  • elementgap:类型为 intParam 的可选标记,可确定元素之间的间隔:
    • 1:小(缺省值)
    • 2:中
    • 3:大
  • linethickness:类型为 intParam 的可选标记,可确定线条的粗细:
    • 1:细
    • 2:中(缺省值)
    • 3:粗
  • linkattrid:类型为 attrParam 的可选标记 (type="link"),可确定链接属性标识。attrParam 的主标识是名为 viewId 的 viewParam 标识。缺省值为 -1,它表示无链接。
  • plotprefix:类型为 checkboxParam 的可选标记,可确定是否绘制前缀。缺省值为 true。
  • plottitle:类型为 checkboxParam 的可选标记,可确定是否绘制标题。缺省值为 true。
  • sortattrid:类型为 attrParam 的可选标记,可确定排序属性标识。attrParam 的主标识是名为 viewId 的 viewParam 标识。缺省值为 -1,它表示不进行排序。
  • reverseorder:类型为 checkboxParam 的可选标记,可确定元素的顺序:第一个值是在顶部还是在底部。如果该值为 false,那么第一个值在顶部。缺省值为 false。
  • textpos:类型为 intParam 的可选标记,可确定前缀和标题的位置:
    • 1:在线上方
    • 2:在线上(缺省值)
    • 3:在线下方
    • 4:无图标
<fp:gantt
	descr="A Gantt chart">
	<fp:viewParam
	changeable="template"
	id="101"
	name="viewId"
	descr="The view"
	/>
	<fp:checkboxParam
		changeable="runtime"
		id="102"
		name="plotprefix"
		descr="Click here to include Prefix"
		defaultvalue="true"
	/>
<fp:checkboxParam
		changeable="runtime"
		id="103"
		name="plottitle"
		descr="Click here to include Title"
		defaultvalue="true"
	/>
<fp:intParam
		changeable="runtime"
		id="104"
		name="iconpos"
		descr="The position of icons (1-4)"
		defaultvalue="2"
	/>
<fp:intParam
		changeable="runtime"
		id="104"
		name="iconpos"
		descr="The position of icons (1-4)"
		defaultvalue="3"
	/>
<fp:intParam
		changeable="runtime"
		id="105"
		name="textpos"
		descr="The position of the text (1-4)"
		defaultvalue="2"
	/>
<fp:intParam
		changeable="runtime"
		id="106"
		name="textpos"
		descr="The position of the text (1-4)"
		defaultvalue="2"
	/>
	<fp:intParam
		changeable="runtime"
		id="107"
		name="linethickness"
		descr="The lines' thickness"
		defaultvalue="2"
	/>
<fp:intParam
		changeable="runtime"
		id="105"
		name="textpos"
		descr="The position of the text (1-4)"
		defaultvalue="2"
	/>
<fp:attrParam
		changeable="template"
		id="108"
		name="sortattrid"
		masterid=101
		descr="The sort attribute"
	/>
	<fp:attrParam
		changeable="template"
		id="109"
		name="linkattrid"
		masterid="101"
		descr="The link attribute"
	/>
</fp:gantt>
fp:baselinediff 显示两条基线之间的差异。 本组件具有通用属性、通用标记和以下标记:
  • viewId:包含视图标识且类型为 viewParam 的必需标记。
  • baselineA:类型为 stringParam 的必需标记,可指定第一条基线的名称。
  • baselineB:类型为 stringParam 的必需标记,可指定第二条基线的名称。
<fp:baselinediff
	descr="Baseline Diff">
	<fp:viewParam
			changeable="template"
			id="101"
			name="viewId"
			descr="The view"
	/>
	<fp:stringParam
			changeable="template"
			id="102"
			name="baselineA"
			descr="The first baseline"
	/>
<fp:stringParam
			changeable="template"
			id="103"
			name="baselineB"
			descr="The second baseline"
	/>
</fp:baselinediff>

反馈