<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tl/onlinemanual/000020d" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">How to test the Show or List method</Title>
		<Keyword ContextSensitive="No"><Level1>Business Object Layer (BOL)</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>
                                 Infor ERP LN Development Tools
                              </Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Show method</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>List method</Level1>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">This topic describes how you can test the public Show and List methods of a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link>.</Paragraph>
	</AimSection>
	<GeneralSection><SectionTitle>Procedure</SectionTitle>
		<ProcedureList><ListIntro>To test the Show method, take the following steps:</ListIntro>
			<ListItem>Enter the request argument: enter the object ID, for example, the order number, to be retrieved by the Show method.</ListItem>
			<ListItem>Select the attributes to be retrieved.</ListItem>
			<ListItem>Optionally, define a filter or a condition.</ListItem>
		</ProcedureList>
		<ProcedureList><ListIntro>To test the List method, take the following steps:</ListIntro>
			<ListItem>Select the attributes to be retrieved</ListItem>
			<ListItem>Optionally: define a filter or a condition.</ListItem>
		</ProcedureList>
		<Paragraph class="Default">Refer to the following sections for more details.</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>XML schema file request</SectionTitle>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The following figure shows the XML schema file of the Request argument of the Show method of the Order (tlbct790) Business Object.</FigIntro>
			<HTML:IMG height="353" width="573" SRC="../images/nt_screen_000020da.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020da.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020da.gif" ID="IDAB1BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>Schema file tl bct bl790shrq0000.xsd tlbct790-Show-Request</FigCaption>
		</Figure>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The following figure shows the details of the LogicalExpression and ComparisonExpression elements in the Request argument.</FigIntro>
			<HTML:IMG height="276" width="571" SRC="../images/nt_screen_000020db.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020db.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020db.gif" ID="IDAK1BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>Schema file tl bct bl790shrq0000.xsd tlbct790-Show-Request - continued</FigCaption>
		</Figure>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The XML schema file of the Request argument of the List method is nearly equal:</FigIntro>
			<HTML:IMG height="250" width="579" SRC="../images/nt_screen_000020dc.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dc.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dc.gif" ID="IDAT1BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>Schema file tl bct bl790blrsq0000.xsd tlbct790-List-Request</FigCaption>
		</Figure>
		<Paragraph class="Default">The SelectionAndFiltering part is equal for the Show and List method.</Paragraph>
		<Paragraph class="Default">The difference between Show and List is that Show is working on one object that must mandatorily be filled in the XML message.</Paragraph>
		<Paragraph class="Default">Filtering is applicable not only for the List method, but also for the Show method, because you can apply filtering on the components, such as order lines, in a Business Object, for example: show order X, but give me only order lines with quantity greater than 1 and item equal to "some-item".</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>Enter request</SectionTitle>
		<Paragraph class="Default">Click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#createrequest" role="command">Enter Request</GUIRef> to define the Request argument for the Show method.</Paragraph>
		<Figure space-and-orientation="indented-estimated"><FigIntro>If you click this button, a Graphical Browser appears, in which you must enter the object ID, for example, the order number, to be retrieved by the Show method:</FigIntro>
			<HTML:IMG height="338" width="311" SRC="../images/nt_screen_000020dd.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dd.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dd.gif" ID="IDA21BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default"></Paragraph>
		<Paragraph class="Default">Save the Request argument and close the graphical browser to return to the <GUIRef href="/baanerp/tl/bct/tlbct3250m000" role="session">BOL Test Tool - Public Layer (tlbct3250m000)</GUIRef> session.</Paragraph>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">For the List method, the <GUIRef href="/baanerp/tl/bct/tlbct3250m000#createrequest" role="command">Enter Request</GUIRef> button is unavailable. The objects that the List method retrieves are determined purely by the filter specification. Refer to the following section for details.</Paragraph>
		</Note>
	</GeneralSection>
	<GeneralSection><SectionTitle>Define selection</SectionTitle>
		<Paragraph class="Default">The selection is part of the XML Request argument. To define the selection, click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#selectattribute" role="command">Define Selection</GUIRef>.</Paragraph>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The following Graphical Browser appears:</FigIntro>
			<HTML:IMG height="443" width="265" SRC="../images/nt_screen_000020de.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020de.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020de.gif" ID="IDAF2BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default"></Paragraph>
		<Paragraph class="Default">The Graphical Browser lists all the attributes on which a selection is permitted. This list of allowed attributes is defined in the XML schema, which is part of the filterAttributeList.</Paragraph>
		<List><ListIntro>If you right-click an attribute, a shortcut menu with the following options appears:</ListIntro>
			<ListItem><GUIRef href="" role="manual">Select</GUIRef>: The attribute is colored blue, which means that this attribute will be part of the response message. For color-blind users, the keyword [Selected] is added.</ListItem>
			<ListItem><GUIRef href="" role="manual">Deselect</GUIRef>: The attribute returns from the color blue to black. The attribute is no longer part of the response message. For color-blind users, the keyword [Selected] is removed.</ListItem>
		</List>
		<Paragraph class="Default">Users can select attributes either one-by-one or all-at-once.</Paragraph>
		<Figure space-and-orientation="indented-estimated"><FigIntro>To select attributes all-at-once, first close the SelectionList folder, and subsequently use the shortcut menu on the keyword SelectionList:</FigIntro>
			<HTML:IMG height="97" width="207" SRC="../images/nt_screen_000020df.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020df.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020df.gif" ID="IDAO2BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The result if you click <GUIRef href="" role="manual">Select</GUIRef> and subsequently open the folder is as follows:</FigIntro>
			<HTML:IMG height="468" width="280" SRC="../images/nt_screen_000020dg.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dg.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dg.gif" ID="IDAX2BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default">Close the Graphical Browser when you finish selecting attributes. The test tool stores your selection automatically.</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>Define filter</SectionTitle>
		<Paragraph class="Default">The filter is part of the XML Request argument. To create a filter, click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#definefilter" role="command">Define Filter</GUIRef>. The graphical browser for filtering starts. The graphical browser checks whether a filter is already defined for the current test case.</Paragraph>
		<Figure space-and-orientation="indented-estimated"><FigIntro>If no filter exists, the following question appears:</FigIntro>
			<HTML:IMG height="109" width="225" SRC="../images/nt_screen_000020dh.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dh.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dh.gif" ID="IDAA3BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<List><ListItem>Click <GUIRef href="" role="manual">Filter</GUIRef> if you want to specify a single condition: one condition on one attribute. The <Link href="/baanerp/tl/bct/tlbct3200m000" role="session">Filter Attribute (tlbct3200m000)</Link> session starts, in which you must specify the attribute, operator, and value for the condition. The following figure shows an example of a filter created in this session:</ListItem>
		</List>
		<Figure space-and-orientation="indented-estimated"><HTML:IMG height="222" width="264" SRC="../images/nt_screen_000020di.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020di.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020di.gif" ID="IDAJ3BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<List><ListItem>Click <GUIRef href="" role="manual">Condition</GUIRef> if you want to specify multiple conditions, for example, to specify a condition for three attributes. You must select a boolean operator (AND/OR), and for each attribute, specify the attribute name, a logical operator, and a value. For more details, refer to <Link href="/baanerp/tl/onlinemanual/000020d#condition" role="manual">Condition</Link>, later in this topic.</ListItem>
		</List>
		<GeneralSection ID="condition"><SectionTitle>Condition</SectionTitle>
			<Paragraph class="Default">To create a condition, click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#definefilter" role="command">Define Filter</GUIRef> and click <GUIRef href="" role="manual">Condition</GUIRef>.</Paragraph>
			<Figure space-and-orientation="indented-estimated"><FigIntro>The following question appears:</FigIntro>
				<HTML:IMG height="90" width="192" SRC="../images/nt_screen_000020dj.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dj.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dj.gif" ID="IDAS3BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<Paragraph class="Default">Select the desired operator. The boolean operator is required to link two conditions. If you choose And, you can always change this operator later to Or, and vice versa.</Paragraph>
			<Figure space-and-orientation="indented-estimated"><FigIntro>As a result (default) two arguments appear in the Graphical Browser. You must fill each of these arguments.</FigIntro>
				<HTML:IMG height="220" width="217" SRC="../images/nt_screen_000020dk.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dk.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dk.gif" ID="IDA13BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<List><ListIntro>If you right-click an argument, a shortcut menu appears with the following options:</ListIntro>
				<ListItemHead>Insert Comparison Expression</ListItemHead>
				<ListItem>This option starts the <Link href="/baanerp/tl/bct/tlbct3200m000" role="session">Filter Attribute (tlbct3200m000)</Link> session, in which you must specify the attribute, operator, and value for the condition.</ListItem>
			</List>
			<Figure space-and-orientation="indented-estimated"><FigIntro>The result is, for example:</FigIntro>
				<HTML:IMG height="253" width="251" SRC="../images/nt_screen_000020dl.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dl.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dl.gif" ID="IDAE4BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<Paragraph class="Default">If a comparison expression contains no data, this is reported by the <GUIRef href="" role="manual">Check Syntax</GUIRef> command that is available on the <GUIRef href="" role="manual">Specific</GUIRef> menu on the Menu Browser. The following message appears: "Comparison Expressions found that are not filled. Fill or remove empty Comparison Expressions."</Paragraph>
			<List><ListItemHead>Insert Or</ListItemHead>
				<ListItem>This option fills the argument with an Or and creates two subfolders with the name "&lt;Argument&gt;", for the Or. The following figure provides an example:</ListItem>
			</List>
			<Figure space-and-orientation="indented-estimated"><HTML:IMG height="215" width="213" SRC="../images/nt_screen_000020dm.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dm.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dm.gif" ID="IDAN4BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<List><ListItemHead>Insert And</ListItemHead>
				<ListItem>This option fills the argument with an And and creates two subfolders with the name "&lt;Argument&gt;", for the And. The following figure provides an example:</ListItem>
			</List>
			<Figure space-and-orientation="indented-estimated"><HTML:IMG height="213" width="204" SRC="../images/nt_screen_000020dn.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dn.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dn.gif" ID="IDAW4BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<Paragraph class="Default">All &lt;Argument&gt;'s must be filled or deleted. You can check this through the <GUIRef href="" role="manual">Check Syntax</GUIRef> command that is available on the <GUIRef href="" role="manual">Specific</GUIRef> menu on the Menu Browser. The following warning appears: "&lt;Argument&gt;'s found. Replace or remove."</Paragraph>
			<Figure space-and-orientation="indented-estimated"><FigIntro>A possible complete filter is:</FigIntro>
				<HTML:IMG height="295" width="224" SRC="../images/nt_screen_000020do.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020do.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020do.gif" ID="IDA54BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<Paragraph class="Default">If you run Check Syntax on this example, the following message appears: "Filter specification is correct."</Paragraph>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">You can use the shortcut menu to change an And to an Or, and vice versa. In addition, you can also add an &lt;Argument&gt; folder.</Paragraph>
				<Figure space-and-orientation="indented-estimated"><FigIntro>The following figure provides an example:</FigIntro>
					<HTML:IMG height="228" width="266" SRC="../images/nt_screen_000020dp.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dp.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dp.gif" ID="IDAI5BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			</Note>
		</GeneralSection>
	</GeneralSection>
	<GeneralSection><SectionTitle>Perform test</SectionTitle>
		<Paragraph class="Default">After you create the Request argument, you can run the test. Click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#testdll" role="command">Execute Test</GUIRef>. Refer to <Link href="/baanerp/tl/onlinemanual/000020a#executetest" role="manual">Execute test</Link> for more details.</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>View response</SectionTitle>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The following figure provides an example of a show result:</FigIntro>
			<HTML:IMG height="583" width="440" SRC="../images/nt_screen_000020dq.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dq.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dq.gif" ID="IDAR5BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
	</GeneralSection>
	<GeneralSection><SectionTitle>View result</SectionTitle>
		<Figure space-and-orientation="indented-estimated"><FigIntro>The following figure provides an example of a possible error:</FigIntro>
			<HTML:IMG height="351" width="389" SRC="../images/nt_screen_000020dr.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020dr.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020dr.gif" ID="IDA05BAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/tl/onlinemanual/000020" role="manual">How to test public methods for Infor ERP LN</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tl/onlinemanual/000010" role="manual">How to test protected methods for Infor ERP LN</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/onlinemanual/100107" role="manual">To Model a Business Object</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
