<?xml version="1.0" encoding="utf-8"?>
<OptionList ID="/baanerp/tt/domains/adv.layt" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Layout Type</Title>
	</Header>
	<SimpleSection><Paragraph class="Default">A report can contain the following layout types:</Paragraph>
	</SimpleSection>
	<ListValue ID="before.report"><Value>Before.report</Value>
		<Paragraph class="Default">Layouts of this type are printed once at the beginning of the report. This layout can be used to present information about the report. For example, the title page of the report.</Paragraph>
	</ListValue>
	<ListValue ID="header"><Value>Header</Value>
		<Paragraph class="Default">Header layouts are printed at the top of every page.</Paragraph>
	</ListValue>
	<ListValue ID="before.field"><Value>Before.field</Value>
		<Paragraph class="Default">You can define this layout for each input field for which a <Link href="/baanerp/tt/adv/ttadv3532m000#ttadv332.srtm" role="formfield">Sort Mode</Link> is defined in the <GUIRef href="/baanerp/tt/adv/ttadv3532m000" role="session">Report Input Fields (ttadv3532m000)</GUIRef> session.</Paragraph>
		<Paragraph class="Default">Each time the value of the sorted input field changes, this layout is printed before the <Link href="#detail" role="internal">detail</Link> lines. In this way the records are grouped. If a group of records spans more than one page, the before.field layout is repeated at the top of the new page (following the header).</Paragraph>
		<Paragraph class="Default">You can suppress automatic printing at the top of every page by using <Emphasis>lattr.break</Emphasis> as an output expression. The <Emphasis>lattr.break</Emphasis> output expression is a predefined variable that contains the value 1 (true) when the sort field changes. By using this output expression, the layout is only printed when the input variable is changed.</Paragraph>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<List><ListIntro>To define multiple grouping levels in a report, e.g. group Purchase Order records first by <GUIRef href="" role="manual">buyer</GUIRef>, and then by <GUIRef href="" role="manual">buy-from business partner</GUIRef>:</ListIntro>
				<ListItem>in the <GUIRef href="/baanerp/tt/adv/ttadv3532m000" role="session">Report Input Fields (ttadv3532m000)</GUIRef> session, define a <Link href="/baanerp/tt/adv/ttadv3532m000#ttadv332.srtm" role="formfield">Sort Mode</Link> and a <Link href="/baanerp/tt/adv/ttadv3532m000#ttadv332.srto" role="formfield">Sort Seq.</Link> for each input field by which the records must be grouped.</ListItem>
				<ListItem>Define a before.field for each of these sort fields.</ListItem>
			</List>
		</Note>
		<Paragraph class="Default">The order of sorting and grouping depends on the <Link href="/baanerp/tt/adv/ttadv3532m000#ttadv332.srto" role="formfield">Sort Seq.</Link> that was specified.</Paragraph>
	</ListValue>
	<ListValue ID="detail"><Value>Detail</Value>
		<Paragraph class="Default">Detail layouts are used for the individual records included in the body of the report. They are printed every time that data is sent to the report.</Paragraph>
	</ListValue>
	<ListValue ID="after.field"><Value>After.field</Value>
		<Paragraph class="Default">You can define this layout for each input field for which a <Link href="/baanerp/tt/adv/ttadv3532m000#ttadv332.srtm" role="formfield">Sort Mode</Link> is defined in the <GUIRef href="/baanerp/tt/adv/ttadv3532m000" role="session">Report Input Fields (ttadv3532m000)</GUIRef> session.</Paragraph>
		<Paragraph class="Default">Each time the value of the sorted input field changes, the layout is printed after the detail lines. In this layout, the presorted input field still contains the old value.</Paragraph>
		<Paragraph class="Default">This layout, for example, can be used to print totals for a particular group of detail lines.</Paragraph>
	</ListValue>
	<ListValue ID="footer"><Value>Footer</Value>
		<List><ListIntro>Footer layouts are printed at the bottom of each page. This layout is used to print:</ListIntro>
			<ListItem>Titles</ListItem>
			<ListItem>Page numbers</ListItem>
			<ListItem>Page totals</ListItem>
		</List>
	</ListValue>
	<ListValue ID="after.report"><Value>After.report</Value>
		<Paragraph class="Default">This layout is only printed at the end of the report, and after all other layouts. If this layout does not fill a complete page, the footer layout will be printed at the bottom of the page, where the After.report layout(s) is printed.</Paragraph>
	</ListValue>
</OptionList>
