<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/adv/ttadv7104m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Protected Attributes (ttadv7104m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to define the protected attributes of a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link> or business object component.</Paragraph>
		</AimSection>
		<GeneralSection><Paragraph class="Default">Protected attributes store the properties of a business object in an internal format.</Paragraph>
			<List><ListIntro>Protected attributes are used for the following purposes:</ListIntro>
				<ListItem>As arguments in protected methods.</ListItem>
				<ListItem>To map public attributes.</ListItem>
			</List>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/tt/onlinemanual/100107" role="manual">To Model a Business Object</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="ttadv704.atno"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">No.</Title>
			</Header>
			<FuncDesc>The sequence number of the record.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.attr"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Attribute</Title>
			</Header>
			<FuncDesc>The name of the attribute.</FuncDesc>
			<SimpleSection><List><ListIntro>The following rules apply to the attribute name:</ListIntro>
					<ListItem>The name must be unique within the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link> or within the business object component.</ListItem>
					<ListItem>The name must refer to business concepts and/or the functionality of the business object. Do not use a name that refers to a technical solution.</ListItem>
					<ListItem>Use ERP LN terminology, such as Item, Business Partners, and so on.</ListItem>
					<ListItem>The name must be meaningful.</ListItem>
					<ListItem>Only alphanumeric characters ([A-Z], [a-z], [0-9]) are allowed.</ListItem>
					<ListItem>If the name consists of several words, start each word with a capital, except for the first word.</ListItem>
					<ListItem>Spaces are not allowed.</ListItem>
				</List>
				<Paragraph class="Default">
                                    Example: soldToBusinessPartner.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="attr.domain"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Domain</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#domain.tt" role="glossary">domain</Link> of the attribute.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Domains are defined in the <GUIRef href="/baanerp/tt/adv/ttadv4500m000" role="session">Domains (ttadv4500m000)</GUIRef> session.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="attr.dom.type"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Data Type</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/adv/ttadv4500m000#ttadv400.type" role="formfield">Data Type</Link> of the attribute's domain, e.g. String, Long or Double.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.za_mope"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Map Operator</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/domains/adv.mope" role="domain">Map Operator for protected attributes</Link> for the attribute.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.ze_mppg(1)"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Mapping</Title>
			</Header>
			<FuncDesc>Dependent on the <Link href="/baanerp/tt/domains/adv.mope" role="domain">Map Operator for protected attributes</Link> in the previous field, enter the table/form field, the question, or the protected attributes to which the attribute is mapped.</FuncDesc>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">You can only select fields of tables and forms that are linked to the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link> or component.</Paragraph>
			</Note>
			<Tip><SectionTitle>
                                    Tip
                                 </SectionTitle>
				<Paragraph class="Default">To zoom directly to the fields of a particular table, first enter the table code, and then zoom to the <GUIRef href="/baanerp/tt/adv/ttadv4529m000" role="session">Table Fields (ttadv4529m000)</GUIRef> session.</Paragraph>
			</Tip>
		</FieldHelp>
		<FieldHelp ID="ttadv704.zd_indn"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Mapping Element</Title>
			</Header>
			<FuncDesc>The element number that indicates which element in repeating field (an array field) must be used. If the number is zero, the field is not repeating.</FuncDesc>
			<SimpleSection><Paragraph class="Default">For more information, refer to the Help on the following fields: <Link href="/baanerp/tt/adv/ttadv4122s000#ttadv422.repf" role="formfield">Repeating Field</Link> and <Link href="/baanerp/tt/adv/ttadv4122s000#ttadv422.dept" role="formfield">No. of elements</Link>. These fields occurs in the <GUIRef href="/baanerp/tt/adv/ttadv4122s000" role="session">Table Fields (ttadv4122s000)</GUIRef> session, which is available through the details of the <GUIRef href="/baanerp/tt/adv/ttadv4520m000" role="session">Table Definitions (ttadv4520m000)</GUIRef> session.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="dflt.domain"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Default domain</Title>
			</Header>
			<FuncDesc>If you selected <GUIRef href="/baanerp/tt/domains/adv.mope#field" role="option">Table Field</GUIRef> in the <Link href="#ttadv704.za_mope" role="internal">Map Operator</Link> field, the default domain is that of the selected table field. If you selected <GUIRef href="/baanerp/tt/domains/adv.mope#function" role="option">Calculate</GUIRef> or <GUIRef href="/baanerp/tt/domains/adv.mope#none" role="option">Not Applicable</GUIRef>, this field is empty, and you must specify a domain manually.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.zb_ldom"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Override default domain</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, you must manually specify a domain for the attribute. You must enter this domain in the next fields.</FuncDesc>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">If you selected <GUIRef href="/baanerp/tt/domains/adv.mope#field" role="option">Table Field</GUIRef> in the <Link href="#ttadv704.za_mope" role="internal">Map Operator</Link> field, the default domain is that of the selected table field. If you selected <GUIRef href="/baanerp/tt/domains/adv.mope#function" role="option">Calculate</GUIRef> or <GUIRef href="/baanerp/tt/domains/adv.mope#none" role="option">Not Applicable</GUIRef>, you must always specify a domain manually.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="ttadv704.za_atdp"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Domain</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> code of the domain that will be used instead of the default domain.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.za_atdc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Domain</Title>
			</Header>
			<FuncDesc>The identification code of the domain that will be used instead of the default domain.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="cdom.type"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Data Type</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/adv/ttadv4500m000#ttadv400.type" role="formfield">Data Type</Link> of the attribute's domain, e.g. String, Long or Double.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.ze_xmlc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Use as XML Element</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the content of this attribute will be read and interpreted as XML content. As a result, if you clear this check box, the content is not interpreted as XML content. This option allows you to communicate XML content while preventing that it is automatically processed.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This check box is only available if the <Link href="#attr.dom.type" role="internal">data type</Link> of the domain of the attribute is long.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv704.za_reon"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Read-only</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the value of the attribute is calculated. Therefore, this value cannot be changed directly.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.za_idnf"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Identifier</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the attribute is part of the identification of the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">business object</Link> or component.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.za_mndt"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Mandatory</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the attribute must always have a value.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.zf_vwfl"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">View Field</Title>
			</Header>
			<FuncDesc>This field is only available if the map operator is <GUIRef href="" role="manual">Table Field on Form</GUIRef>, or <GUIRef href="" role="manual">Form Field</GUIRef>. Select this check box if the attribute is mapped to a form field that is part of the view area of the session used by the Function Server. The Function Server will fill this field before any other field.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.zf_tses"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Target Session</Title>
			</Header>
			<FuncDesc>This field is only available if the map operator is <GUIRef href="" role="manual">Table Field on Form</GUIRef>, or <GUIRef href="" role="manual">Form Field</GUIRef>. Select whether the Function Server must use the main session, or the synchronized dialog, that is specified in the <GUIRef href="/baanerp/tt/adv/ttadv7117s000" role="session">Business Object Components (ttadv7117s000)</GUIRef> session.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv704.zc_txml"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Data Type as XML Schema</Title>
			</Header>
			<FuncDesc>This is a text field to store a non- ERP LN specific description, in XML Schema format, of the domain, to make the internal interface more generic. This description can be used for data type checks.</FuncDesc>
		</FieldHelp>
	</Fields>
	<FormCommands><CommandHelp ID="generate.protected.attr"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Generate Protected Attributes</Title>
			</Header>
			<FuncDesc>This command automatically generates all possible protected attributes, based on the structure of the business object/component in the current session.</FuncDesc>
			<SimpleSection><List><ListItem>If a business object/component is DAL2/table based, this option automatically generates all possible protected attributes with <Link href="/baanerp/tt/domains/adv.mope" role="domain">Map Operator for protected attributes</Link> <GUIRef href="" role="manual">Table Field</GUIRef>, based on the table definitions for the business object/component.</ListItem>
					<ListItem>If a business object/component is Function Server/session based, the generation of the protected attributes is based on the form fields in the linked session/synchronized dialog. Protected attributes with map operator <GUIRef href="" role="manual">Table field on Form</GUIRef> (for table fields in a form) and <GUIRef href="" role="manual">Form fields</GUIRef> (for other, non table, fields in a form) are generated. If no table is linked to the component, the main table of the linked session/synchronized dialog is automatically added as the component's root table.</ListItem>
				</List>
				<Paragraph class="Default">In both situations, the protected attributes mapped to the root table key fields, are set to <GUIRef href="/baanerp/tt/adv/ttadv7104m000#ttadv704.za_mndt" role="manual">Mandatory</GUIRef> and <GUIRef href="/baanerp/tt/adv/ttadv7104m000#ttadv704.za_idnf" role="manual">Identifier</GUIRef>.</Paragraph>
				<Paragraph class="Default">After the attributes are generated, you can delete the attributes that are not required. You can also manually add extra attributes, whose Map Operator is <GUIRef href="" role="manual">Calculate</GUIRef> or <GUIRef href="" role="manual">Not Applicable</GUIRef>, that are not directly related to table fields.</Paragraph>
				<Paragraph class="Default">Note that the attributes may require manual correction, for example with respect to their names.</Paragraph>
			</SimpleSection>
		</CommandHelp>
	</FormCommands>
</Session>
