<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/adv/ttadv4100s000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Domains (ttadv4100s000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to maintain domains. A domain specifies the data type, the value range, (default) display format, length and so on. Domains can be linked to table fields, form fields, and program variables.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph class="Default">You can copy the domain to your current package VRC. However you can only maintain domains of your current package VRC.</Paragraph>
			<Paragraph class="Default">You can also change the current package VRC of the user in the VRC of the current component.</Paragraph>
		</GeneralSection>
	</HelpTopic>
	<Fields><FieldHelp ID="ttadv400.cpac"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package</Title>
			</Header>
			<FuncDesc>The code of the <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> for which the <Link href="/baanerp/tt/glossary/glossary#domain.tt" role="glossary">domain</Link> is defined.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv100.dsca"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package</Title>
			</Header>
			<FuncDesc>The description of the <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.vers"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">VRC</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000009" role="glossary">version</Link> code of the <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> for which the domain is defined.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.rele"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">VRC</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000010" role="glossary">release</Link> of the package for which the domain is defined.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.cust"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">VRC</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000011" role="glossary">customer</Link> extension of the package for which the domain is defined.</FuncDesc>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">It is only relevant for customized software.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv400.cdom"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Domain</Title>
			</Header>
			<FuncDesc>Select the <Link href="/baanerp/tt/glossary/glossary#domain.tt" role="glossary">domain's</Link> identification code.</FuncDesc>
			<SimpleSection><Paragraph class="Default">A domain is uniquely identified by the combination of <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> code and domain code.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv400.expi"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Expired</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the <Link href="/baanerp/tt/glossary/glossary#domain.tt" role="glossary">domain</Link> for this <Link href="/baanerp/tt/glossary/glossary#000000000000013" role="glossary">package VRC</Link> and the package VRCs derived from it have expired.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.desc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Description</Title>
			</Header>
			<FuncDesc>The description of the <Link href="/baanerp/tt/glossary/glossary#domain.tt" role="glossary">domain</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.type"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Data Type</Title>
			</Header>
			<FuncDesc>The internal representation of data.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.leng"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">String Length</Title>
			</Header>
			<FuncDesc>The length in characters if the data type of the <Link href="/baanerp/tt/glossary/glossary#domain.tt" role="glossary">domain</Link> is string.</FuncDesc>
			<SimpleSection><Paragraph class="Default">The number of positions on which the characters can be placed if the data type is multi-byte string.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv400.adju"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Alignment</Title>
			</Header>
			<FuncDesc>Select the alignment method for <Link href="/baanerp/tt/glossary/glossary#000012" role="glossary">strings</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.conv"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Conversion</Title>
			</Header>
			<FuncDesc>Select the conversion method for <Link href="/baanerp/tt/glossary/glossary#000012" role="glossary">strings</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.itfo"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Internal Format</Title>
			</Header>
			<FuncDesc>This field indicates how a number, entered in a form input field with the string data type must be internally formatted.</FuncDesc>
			<SimpleSection><Paragraph class="Default">For example, if a number like 37 must be stored as 00000037, use the format 99999999.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv400.lene"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Length</Title>
			</Header>
			<FuncDesc>The default display or print length of a field or variable with enumerate or set data type in a form or report. You can overwrite this length on the data of a field in a form or report.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.digb"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Digits before Decimal</Title>
			</Header>
			<FuncDesc>The maximum number of digits for the long, integer and byte data types. For the float and double data types, this is the maximum number of digits before the decimal point.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv400.diga"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Digits after Decimal</Title>
			</Header>
			<FuncDesc>The maximum number of digits after the decimal sign.</FuncDesc>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">Only relevant for double and float data types.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv400.divf"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Divide Factor</Title>
			</Header>
			<FuncDesc>The factor by which the entry in a field is divided.</FuncDesc>
			<SimpleSection><Paragraph class="Default"> 
                                    Example Divide factor = 100 The user enters 25009 in the field. <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> divides 25009 by 100 and displays 250.09.</Paragraph>
				<Paragraph class="Default">It can be useful for fields containing amounts.</Paragraph>
			</SimpleSection>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">This entry can only be filled in a domain of the double or float data type.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv400.rndm"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Rounding Method</Title>
			</Header>
			<FuncDesc>Select the way in which a field with the float or double data type can be rounded.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Rounding takes place at the last digit as specified by the number of digits after the decimal point.</Paragraph>
				<Paragraph class="Default">In the following examples, the number of digits after the decimal sign is one.</Paragraph>
				<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TH rowspan="1" colspan="1">Entered by user</TH>
							<TH rowspan="1" colspan="1">Round off</TH>
							<TH rowspan="1" colspan="1">Round off upwards</TH>
							<TH rowspan="1" colspan="1">Round off downwards</TH>
						</TR>
						<TR><TD rowspan="1" colspan="1">1.51</TD>
							<TD rowspan="1" colspan="1">1.5</TD>
							<TD rowspan="1" colspan="1">1.6</TD>
							<TD rowspan="1" colspan="1">1.5</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">2.78</TD>
							<TD rowspan="1" colspan="1">2.8</TD>
							<TD rowspan="1" colspan="1">2.8</TD>
							<TD rowspan="1" colspan="1">2.7</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">1.55</TD>
							<TD rowspan="1" colspan="1">1.6</TD>
							<TD rowspan="1" colspan="1">1.6</TD>
							<TD rowspan="1" colspan="1">1.5</TD>
						</TR>
					</TBODY>
				</TABLE>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="difo"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Format</Title>
			</Header>
			<FuncDesc>The display format which is used in forms and reports to display specific data.</FuncDesc>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">The display format can be used for the byte, integer, long, double, float, string (with only digits) and date data types.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="date.difo"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Date/Time Format</Title>
			</Header>
			<FuncDesc>The date.</FuncDesc>
			<RelatedTopics><SectionTitle>
                                    Related topics
                                 </SectionTitle>
				<RelTopic><Link href="/baanerp/basictasks/000008" role="manual">To enter a date</Link>
				</RelTopic>
			</RelatedTopics>
		</FieldHelp>
		<FieldHelp ID="time.difo"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Date/Time Format</Title>
			</Header>
			<FuncDesc>The time.</FuncDesc>
			<RelatedTopics><SectionTitle>
                                    Related topics
                                 </SectionTitle>
				<RelTopic><Link href="/baanerp/basictasks/000009" role="manual">To enter a time</Link>
				</RelTopic>
			</RelatedTopics>
		</FieldHelp>
		<FieldHelp ID="ttadv400.lega"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Legal Characters</Title>
			</Header>
			<FuncDesc>The legal characters that can be entered in a form input field.</FuncDesc>
			<SimpleSection><Paragraph class="Default"> 
                                    Example If only numbers can be entered in a field with string, data type, the legal characters are specified as:</Paragraph>
				<Paragraph class="Default">The characters ' " ^ \ must be preceded by a backslash [\]: \\ and \".</Paragraph>
			</SimpleSection>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">If you do not explicitly specify any legal characters, all characters are legal. If you define some characters as legal, all other characters are illegal, and vice-versa.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv400.ille"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Illegal Characters</Title>
			</Header>
			<FuncDesc>The illegal characters that cannot be entered in a form input field.</FuncDesc>
			<SimpleSection><Paragraph class="Default">The characters ' " ^ \ must be preceded by a backslash [\]: \\ and \".</Paragraph>
			</SimpleSection>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">This field cannot be accessed for domains of enumerate and set types.</Paragraph>
				<Paragraph class="Default">If you do not explicitly specify any illegal characters, all characters are legal.</Paragraph>
				<Paragraph class="Default">If you define some characters as illegal, all other characters are legal, and vice-versa.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv400.rang"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Range</Title>
			</Header>
			<FuncDesc>The range which is used to check the validity of the input. If you enter a value in a form input field outside the specified range, <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> produces a range message, and <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> will ask for input again.</FuncDesc>
			<SimpleSection><Paragraph class="Default">For simple validation checks, you can use the data type, legal and illegal characters, the length of the field and the number of digits before and after the decimal point.</Paragraph>
				<Paragraph class="Default">For more complicated validation checks, you need this range attribute. The range can be an expression with evaluated value true (valid value) or false (invalid value) (true &lt;&gt; 0, false = 0). Other variables can also be used in the expression. The current value can be tested in the expression by using 2 dollar signs: $$</Paragraph>
				<Paragraph class="Default">Examples:</Paragraph>
				<Paragraph class="Default">A number between 30 and 40 and not equal to a specified field:</Paragraph>
				<Paragraph class="Default">$$ in [30,40] and $$ &lt;&gt; ppmmm001.reserved</Paragraph>
				<Paragraph class="Default">A string starting with a capital:</Paragraph>
				<Paragraph class="Default">$$ in ^[A-Z].*$ (regular expression)</Paragraph>
				<Paragraph class="Default">The following operators can be used (listed in order of decreasing precedence):</Paragraph>
				<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TD rowspan="1" colspan="1">( )</TD>
							<TD rowspan="1" colspan="1">expr in brackets</TD>
							<TD rowspan="1" colspan="1">e.g. 2*(3+5)</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">IN</TD>
							<TD rowspan="1" colspan="1">range test</TD>
							<TD rowspan="1" colspan="1">e.g. $$ in [10,20]</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">-</TD>
							<TD rowspan="1" colspan="1">Unary minus</TD>
							<TD rowspan="1" colspan="1">e.g. -10</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">^</TD>
							<TD rowspan="1" colspan="1">Raise to power</TD>
							<TD rowspan="1" colspan="1">e.g. 2^3 = 8</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">* / \</TD>
							<TD colspan="2" rowspan="1">Multiply/ Divide/Remainder</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">&amp;</TD>
							<TD rowspan="1" colspan="1">String concat</TD>
							<TD rowspan="1" colspan="1">e.g. "A"&amp;"B"</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">+ -</TD>
							<TD colspan="2" rowspan="1">Addition / Subtracting</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">= &lt;&gt; &lt;= &gt;= &lt; &gt;</TD>
							<TD colspan="2" rowspan="1">Relational operators</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">not</TD>
							<TD colspan="2" rowspan="1">Logical negation</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">and</TD>
							<TD colspan="2" rowspan="1">Logical and</TD>
						</TR>
						<TR><TD rowspan="1" colspan="1">or</TD>
							<TD colspan="2" rowspan="1">Logical or</TD>
						</TR>
					</TBODY>
				</TABLE>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv400.cmes"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Range Message</Title>
			</Header>
			<FuncDesc>Select the code of the messages (including package code) which is given if you enter a value outside the specified range.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv450.mess"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Range Message</Title>
			</Header>
			<FuncDesc>The message as shown when activated.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="docu"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Tech.Documentation</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, technical documentation is present for this label.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="reln"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Release Notes</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, release notes are present for this label.</FuncDesc>
		</FieldHelp>
	</Fields>
</Session>
