<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/adv/ttadv4501m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Enum/Set Constants (ttadv4501m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to define the constants that belong to a domain of type enumerate, or set, with language-dependent descriptions.</Paragraph>
		</AimSection>
		<GeneralSection><List><ListItem>Enter the constant number, that is for internal usage.</ListItem>
				<ListItem>Enter the name of the constant that is used in program scripts and in defaults in form fields.</ListItem>
				<ListItem>Enter the language-dependent description that is shown at runtime in a form field.</ListItem>
			</List>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">If you have started this session by zooming, you can only find and select a record.</Paragraph>
			</Note>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/basictasks/000001" role="manual">To use an overview session</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="ttadv401.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="ttadv401.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="ttadv401.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 <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> 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="ttadv401.cnst"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Constant</Title>
			</Header>
			<FuncDesc>The constant that represents the internal enumerated field value.</FuncDesc>
			<SimpleSection><Paragraph class="Default">It determines the sequence in which the enum descriptions will be displayed at runtime. If an index includes/consists of an enumerate field, the constant also determines the sequence of records, according to the index.</Paragraph>
				<Paragraph class="Default">You can also use greater than and less than expressions in scripts:</Paragraph>
			</SimpleSection>
			<SimpleSection><SectionTitle>
                                    Example
                                 </SectionTitle>
				<Paragraph class="Default">Domain: tryesno possible values : yes with constant number 1 no with constant number 2 The expression tryesno.no &gt; tryesno.yes is true.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv401.ctnm"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Constant Name</Title>
			</Header>
			<FuncDesc>The constant name combined with the <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> code and <Link href="/baanerp/tt/glossary/glossary#domain.tt" role="glossary">domain</Link> code is used to refer to an enumerated constant in scripts or expressions on forms and reports.</FuncDesc>
			<SimpleSection><Paragraph class="Default"> 
                                    Example package code: ti <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> Manufacturing domain code : yesno constant name: yes</Paragraph>
				<Paragraph class="Default">For example, the constant name yes in a form field with domain code tiyesno, use the expression tiyesno.yes.</Paragraph>
			</SimpleSection>
		</FieldHelp>
	</Fields>
</Session>
