<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/adv/ttadv3131s000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report Layouts (ttadv3131s000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to maintain the layouts of a report.</Paragraph>
		</AimSection>
	</HelpTopic>
	<Fields><FieldHelp ID="ttadv331.cmod"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#100004" role="glossary">module</Link> to which the report belongs.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv331.crep"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report</Title>
			</Header>
			<FuncDesc>The identification code of the report. A report is uniquely identified by the combination of package code, module code, report code and language.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv331.clan"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Report</Title>
			</Header>
			<FuncDesc>The language code of the report. When a user runs a session with a report, the report in his own language will be run.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv331.layt"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Layout Type</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/domains/adv.layt" role="domain">Layout Type</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv331.fldn"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Field Name</Title>
			</Header>
			<FuncDesc>The field name is only applicable for <Link href="/baanerp/tt/domains/adv.layt#before.field" role="option">Before.field</Link> and <Link href="/baanerp/tt/domains/adv.layt#after.field" role="option">After.field</Link> layouts. You can only specify fields, which are defined as a sorted input field in the <GUIRef href="/baanerp/tt/adv/ttadv3532m000" role="session">Report Input Fields (ttadv3532m000)</GUIRef> session. Before.field and After.field layouts will be printed when the value of the specified field changes.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv331.rseq"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">No.</Title>
			</Header>
			<FuncDesc>It is possible to define more than one layout per Layout/Fieldname combination. The layouts of the same Layout/Fieldname will be printed in the order of the sequence number of the layouts.</FuncDesc>
			<SimpleSection><List><ListIntro>There are two reasons to define more than 1 layout per Layout/Fieldname combination:</ListIntro>
					<ListItem>The maximum size of a layout is 22 lines. If your layout should have more lines, you can make a second layout of the same type with a higher sequence number.</ListItem>
					<ListItem>If a particular layout must be printed under certain conditions and another layout under other conditions, you have to define more than one layout with different output conditions.</ListItem>
				</List>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv331.outc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Output Expression</Title>
			</Header>
			<FuncDesc>The output expression is an expression which is evaluated at runtime. The result is always true or false. The expression syntax is equal to the 3 GL syntax. At the moment a layout has to be printed, the system will evaluate the output condition of the layout. Only if the result at that moment is true, the layout is printed.</FuncDesc>
			<SimpleSection><SectionTitle>Examples</SectionTitle>
				<List><ListItemHead>1</ListItemHead>
					<ListItem>Layout will always be printed</ListItem>
					<ListItemHead>0</ListItemHead>
					<ListItem>Layout will never be printed</ListItem>
					<ListItemHead>print.detail = 1 or print.detail = 2</ListItemHead>
					<ListItem>Layout will be printed if variable print.detail is 1 or 2</ListItem>
					<ListItemHead>strip$(tdsls041.cprj) &lt;&gt; ""</ListItemHead>
					<ListItem>Layout will be printed if field tdsls041.cprj is not empty</ListItem>
				</List>
			</SimpleSection>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">If variables are used in the output expression, then those variables must be defined as input field for the report, specified in the <GUIRef href="/baanerp/tt/adv/ttadv3532m000" role="session">Report Input Fields (ttadv3532m000)</GUIRef> session.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv331.font"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Different Font</Title>
			</Header>
			<FuncDesc>Only applicable, if the layouts in one report have different fonts (the <GUIRef href="/baanerp/tt/adv/ttadv3130s000#ttadv330.oblf" role="manual">Fixed Device Font</GUIRef> check box is selected in the <GUIRef href="/baanerp/tt/adv/ttadv3130s000" role="session">Reports (ttadv3130s000)</GUIRef> session). It determines the font in which the layout will be printed.</FuncDesc>
			<SimpleSection><Paragraph class="Default">These fonts can be defined in the printer information files of the printer being used.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv331.page"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">New Page</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the report layout is printed on a new page. Skipping to a new page always causes printing of present <GUIRef href="/baanerp/tt/domains/adv.layt#header" role="option">Header</GUIRef>, <GUIRef href="/baanerp/tt/domains/adv.layt#footer" role="option">Footer</GUIRef> and <GUIRef href="/baanerp/tt/domains/adv.layt#before.field" role="option">Before.field</GUIRef> layout types. If the current line is already at the top of the page, the page command will be ignored.</FuncDesc>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">Not applicable for header and footer layouts.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv331.need"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Extra Need</Title>
			</Header>
			<FuncDesc>This number indicates how many extra lines are needed for the layout on the same page.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Before printing a layout the report writer calculates the free space at the current page. If the layout does not fit on the same page, then the layout will be printed on a new page. If the value of this field is 0, only the number of lines of the layout itself are taken into account. With this field you can increase the number of extra needed free lines for the layout. Increasing this number of lines can be useful if, for example, you want to print at least 2 detail layouts on the same page together with a "before.field" layout.</Paragraph>
			</SimpleSection>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">This does not apply to the <GUIRef href="/baanerp/tt/domains/adv.layt#header" role="option">Header</GUIRef> and the <GUIRef href="/baanerp/tt/domains/adv.layt#footer" role="option">Footer</GUIRef> layout types.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv331.rows"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Number of Rows</Title>
			</Header>
			<FuncDesc>The number of lines of the report layout. This number is calculated automatically. You can not access this field.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv331.mcol"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Multi columns</Title>
			</Header>
			<FuncDesc>Indicates whether the report layout must be printed in more than one column or not. The number of columns depends on the size of the layout and the paper width. You can change the layout size with the command &lt;Esc&gt;[S] in the report layout editor. Page Width Number of columns = -------------- Layout Width</FuncDesc>
		</FieldHelp>
	</Fields>
</Session>
