<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/onlinemanual/100125" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Dynamic sessions and dynamic forms</Title>
		<Keyword ContextSensitive="No"><Level1>Dynamic sessions</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Dynamic forms</Level1>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">In ERP LN the sessions and forms are dynamic. The appearance of a dynamic session/form is not fixed but can differ per situation.</Paragraph>
	</AimSection>
	<GeneralSection ID="characteristics"><SectionTitle>Characteristics</SectionTitle>
		<List><ListIntro>The following list is an overview of the key characteristics of dynamic sessions and dynamic forms.</ListIntro>
			<ListItemHead>Form layout</ListItemHead>
			<ListItem>The form layout is dynamic: the position of fields and labels is not fixed, but can differ per situation. At runtime, the same form can be displayed in multiple ways. The runtime appearance of the form is based on: <List><ListItem>the content (labels and fields) and the structure (grouping of labels and fields) of the form and the sequence of fields and groups in the form definition.</ListItem>
					<ListItem>the table field authorizations of the user (if any): if a user is not authorized for a table field, the field (including its label) completely disappears from the form. The position of the remaining form fields is rearranged automatically. Refer to <Link href="#table_field_authorizations" role="internal">Impact of table field authorizations</Link> for an example.</ListItem>
					<ListItem>the mode in which the session is run. Dynamic sessions can run in overview mode and in details mode.</ListItem>
				</List>
			</ListItem>
			<ListItemHead>Editor</ListItemHead>
			<ListItem>Forms are edited through the Dynamic Form Editor ( DFE ). This editor is a separate utility and must be installed, from the Infor ERP LN installation CD, on the client PC. Refer to <Link href="#dynamicformeditor" role="internal">Dynamic Form Editor</Link> for details on the editor.</ListItem>
			<ListItemHead>Session generation</ListItemHead>
			<ListItem>You can create sessions through the <Link href="/baanerp/tt/adv/ttadv2500m000" role="session">Sessions (ttadv2500m000)</Link> session. For each session, an empty dynamic form is generated automatically. You must use the Dynamic Form Editor to generate the form fields.</ListItem>
			<ListItemHead>Session and form integration</ListItemHead>
			<ListItem>Sessions and forms are integrated. There is a one to one relationship between sessions and forms: each form is linked to a session and each session has only one form. You can directly edit the form by clicking <GUIRef href="" role="manual">Edit Form</GUIRef> in the <Link href="/baanerp/tt/adv/ttadv2500m000" role="session">Sessions (ttadv2500m000)</Link> session.</ListItem>
			<ListItemHead>Single form for each session</ListItemHead>
			<ListItem>Each session has only one form. A form can consist of multiple field groups. At runtime, these groups can be displayed as parallel form tabs. In the Dynamic Form Editor, fields can be moved very easily from one field group to another.</ListItem>
			<ListItemHead>Combination of overview and details session</ListItemHead>
			<ListItem>Dynamic sessions can run in 2 modes: overview mode and details mode. Therefore, a single dynamic session can be used as an overview session and as a details session. Refer to <Link href="#overview_and_details" role="internal">Combined overview and details session</Link> for details.</ListItem>
			<ListItemHead>Dynamic Index Switching</ListItemHead>
			<ListItem>If Dynamic Index Switching is implemented for a session, the layout of the form changes automatically when a user selects another index (through the <GUIRef href="" role="manual">Sort by</GUIRef> command in the session's <GUIRef href="" role="manual">View</GUIRef> menu). The runtime layout of the form changes according to the selected index. For example: <List><ListItem>The order of fields in the session's grid changes.</ListItem>
					<ListItem>Different fields are displayed in the view area above the session's grid.</ListItem>
				</List> Refer to <Link href="/baanerp/tt/onlinemanual/100105" role="manual">To implement dynamic index switching</Link> for details.</ListItem>
			<ListItemHead>Text boxes</ListItemHead>
			<ListItem>Text fields can be displayed as text boxes, where you can type the text directly. However, it is also still possible to edit texts via a text editor.</ListItem>
			<ListItemHead>Appearance of enum and string fields</ListItemHead>
			<ListItem>In the Dynamic Form Editor, you can define how enumerated fields and string fields must be displayed. For example, you can indicate whether an enumerated field is displayed as a check box, a drop down list box, or as an option set (a set of radio buttons).</ListItem>
			<ListItemHead>Form commands</ListItemHead>
			<ListItem>Multiple form commands can be defined for each session/form. Form commands are used to start a session, a function, a business method or a menu. Form commands can be started via buttons or via the session's <GUIRef href="" role="manual">Specific</GUIRef> menu. You can create form commands in the <GUIRef href="/baanerp/tt/adv/ttadv3518m000" role="session">Form Commands (ttadv3518m000)</GUIRef> session.</ListItem>
		</List>
	</GeneralSection>
	<GeneralSection ID="dynamicformeditor"><SectionTitle>
                              Dynamic Form Editor
                           </SectionTitle>
		<Paragraph class="Default">The Dynamic Form Editor ( DFE ) is not an ERP LN session, but a separate utility that must be installed, from the ERP LN installation CD, on the client PC.</Paragraph>
		<Paragraph class="Default">Use this editor to define the form fields (including their labels), field groups and alignment settings for a form. In the editor, the form is displayed as a list of fields and field groups. The editor offers preview options to view the runtime layout of the form, while editing.</Paragraph>
		<Paragraph class="Default">The following figure shows a screenshot of the DFE:</Paragraph>
		<Figure space-and-orientation="indented-estimated"><HTML:IMG height="608" width="502" SRC="../images/nt_screen_dfe_1.gif" path="/enterpriseserver/tools/tt/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_dfe_1.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tt/images/nt_screen_dfe_1.gif" ID="IDAM0WBC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>Form of Employees (tccom0101m000) session in the DFE
                              </FigCaption>
		</Figure>
		<List><ListIntro>The dynamic form in this figure contains various types of components:</ListIntro>
			<ListItem>Table fields, e.g. the <GUIRef href="" role="manual">tccom001.emno</GUIRef> field.</ListItem>
			<ListItem>Table fields with a reference to another table, e.g. the <GUIRef href="" role="manual">tccom001.clan</GUIRef> field.</ListItem>
			<ListItem>Non-table fields, e.g. variables from the session's program script. For example: the <GUIRef href="" role="manual">user.desc</GUIRef> field.</ListItem>
			<ListItem>Field groups, e.g. the <GUIRef href="" role="manual">General</GUIRef> and <GUIRef href="" role="manual">Employment</GUIRef> groups.</ListItem>
		</List>
		<Paragraph class="Default">Each component type has its own icon. The icon in the form's upper left corner represents the entire session. Here you can modify session properties, such as the runtime appearance of field groups (on a single page, or on multiple form tabs).</Paragraph>
		<Tip><SectionTitle>More information</SectionTitle>
			<Paragraph class="Default">For detailed information refer to the DFE online help. You can access this online help via the <GUIRef href="" role="manual">Help</GUIRef> menu in the DFE (see the previous figure) or by pressing F1 in the DFE.</Paragraph>
		</Tip>
	</GeneralSection>
	<GeneralSection ID="overview_and_details"><SectionTitle>Combined overview and details session</SectionTitle>
		<Paragraph class="Default">
                              ERP LN contains various sessions that are used as both an overview session and a details session.</Paragraph>
		<List><ListIntro>For example:</ListIntro>
			<ListItem><GUIRef href="/baanerp/tc/com/tccom0101m000" role="session">Employees - General (tccom0101m000)</GUIRef>
			</ListItem>
			<ListItem><GUIRef href="/baanerp/fm/fmd/fmfmd1100m000" role="session">Items - Freight Management (fmfmd1100m000)</GUIRef>
			</ListItem>
			<ListItem><GUIRef href="/baanerp/fm/lbd/fmlbd0150m000" role="session">Standard Routes (fmlbd0150m000)</GUIRef>
			</ListItem>
			<ListItem><GUIRef href="/baanerp/ts/mdm/tsmdm0115m000" role="session">Tasks (tsmdm0115m000)</GUIRef>
			</ListItem>
			<ListItem><GUIRef href="/baanerp/ts/mdm/tsmdm1105m000" role="session">Service Areas (tsmdm1105m000)</GUIRef>
			</ListItem>
		</List>
		<Paragraph class="Default">When you start such a combined session, the session runs in overview mode: a list of records is displayed. However, when you double-click a record (or click <GUIRef href="" role="manual">New</GUIRef> or <GUIRef href="" role="manual">Duplicate</GUIRef> ) in the overview session, the same session is started in details mode: a dialog, where you can edit a single record, appears.</Paragraph>
		<Figure space-and-orientation="indented-estimated"><FigIntro>See the following figure for an example:</FigIntro>
			<HTML:IMG height="384" width="687" SRC="../images/nt_screen_dfe_2.gif" path="/enterpriseserver/tools/tt/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_dfe_2.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tt/images/nt_screen_dfe_2.gif" ID="IDAV0WBC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>Employees (tccom0101m000) session in overview mode and in details mode</FigCaption>
		</Figure>
		<Paragraph class="Default">In the DFE, you can specify per field/group whether the field/group must be displayed in overview mode and/or in details mode. For details, refer to "Field properties" and "Group properties" in the DFE online help.</Paragraph>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">Overview session and details session are not always the same session. In a lot of cases the overview session and the details session are separate sessions.</Paragraph>
			<List><ListIntro>For example:</ListIntro>
				<ListItem>The <GUIRef href="/baanerp/tc/ibd/tcibd0501m000" role="session">Items - General (tcibd0501m000)</GUIRef> overview session and the <GUIRef href="/baanerp/tc/ibd/tcibd0101s000" role="session">Item - General (tcibd0101s000)</GUIRef> details session.</ListItem>
				<ListItem>The <GUIRef href="/baanerp/tc/com/tccom4500m000" role="session">Business Partners (tccom4500m000)</GUIRef> overview session and the <GUIRef href="/baanerp/tc/com/tccom4100s000" role="session">Business Partners (tccom4100s000)</GUIRef> details session.</ListItem>
				<ListItem>The <GUIRef href="/baanerp/tc/com/tccom4530m000" role="session">Addresses (tccom4530m000)</GUIRef> overview session and the <GUIRef href="/baanerp/tc/com/tccom4130s000" role="session">Addresses (tccom4130s000)</GUIRef> details session.</ListItem>
			</List>
		</Note>
	</GeneralSection>
	<GeneralSection ID="table_field_authorizations"><SectionTitle>Impact of table field authorizations</SectionTitle>
		<Paragraph class="Default">The runtime appearance of a dynamic form is influenced by the table field authorizations of the user (if any): if a user is not authorized for a table field, the field (including its label) completely disappears from the form. The position of the remaining form fields is rearranged automatically.</Paragraph>
		<ExampleSection><SectionTitle>
                                 Example
                              </SectionTitle>
			<Paragraph class="Default">A user with full table field authorizations starts the <GUIRef href="/baanerp/tc/com/tccom4100s000" role="session">Business Partners (tccom4100s000)</GUIRef> details session.</Paragraph>
			<Figure space-and-orientation="indented-estimated"><FigIntro>The form looks like this:</FigIntro>
				<HTML:IMG height="747" width="570" SRC="../images/nt_screen_dfe_3.gif" path="/enterpriseserver/tools/tt/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_dfe_3.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tt/images/nt_screen_dfe_3.gif" ID="IDA40WBC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>Business Partners (tccom4100s000) details session - full table field authorization</FigCaption>
			</Figure>
			<List><ListIntro>Another user is linked to a role that contains the following table field authorizations:</ListIntro>
				<ListItem>tccom100.prst - Business Partner Status: Not authorized</ListItem>
				<ListItem>tccom100.stdt - Start Date (From): Not authorized</ListItem>
				<ListItem>tccom100.endt - End Date (To): Not authorized</ListItem>
			</List>
			<Figure space-and-orientation="indented-estimated"><FigIntro>When this user starts the session, the form looks like this:</FigIntro>
				<HTML:IMG height="716" width="576" SRC="../images/nt_screen_dfe_4.gif" path="/enterpriseserver/tools/tt/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_dfe_4.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tt/images/nt_screen_dfe_4.gif" ID="IDAH1WBC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<Paragraph class="Default">The three fields, for which the user is not authorized, have completely disappeared from the form. The <GUIRef href="" role="manual">Status</GUIRef> group box that surrounded the fields has also disappeared.</Paragraph>
		</ExampleSection>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">Table field authorizations can be defined through the <GUIRef href="" role="manual">Specific</GUIRef> menu in the <GUIRef href="/baanerp/tt/ams/ttams2100m000" role="session">Role Data (ttams2100m000)</GUIRef> session. For details refer to <Link href="/baanerp/tt/onlinemanual/000052" role="manual">To define authorizations</Link>.</Paragraph>
		</Note>
	</GeneralSection>
	<GeneralSection ID="sessions"><SectionTitle>Sessions</SectionTitle>
		<List><ListIntro>In ERP LN you can use the following sessions to maintain dynamic sessions and dynamic forms:</ListIntro>
			<ListItem><Link href="/baanerp/tt/adv/ttadv2500m000" role="session">Sessions (ttadv2500m000)</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tt/adv/ttadv3500m000" role="session">Forms (ttadv3500m000)</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tt/adv/ttadv3518m000" role="session">Form Commands (ttadv3518m000)</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tt/adv/ttadv2900m000" role="session">Convert session to dynamic (ttadv2900m000)</Link>
			</ListItem>
		</List>
	</GeneralSection>
	<RelatedTopics><SectionTitle>
                              Related topics
                           </SectionTitle>
		<RelTopic>The online help in the Dynamic Form Editor
                           </RelTopic>
		<RelTopic><Link href="/baanerp/tt/onlinemanual/100121" role="manual">Session Synchronization</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/onlinemanual/100122" role="manual">Multi Main Table sessions</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/onlinemanual/100105" role="manual">To implement dynamic index switching</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/onlinemanual/100129" role="manual">Program Scripts Overview</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/EnterpriseStudio/onlinemanual/rpt_overview" role="manual">ERP LN Reporting Overview</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
