<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tl/onlinemanual/000020b" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">How to test the Change method</Title>
		<Keyword ContextSensitive="No"><Level1>Business Object Layer (BOL)</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>
                                 Infor ERP LN Development Tools
                              </Level1>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">This topic describes how you can test a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link>'s public Change method.</Paragraph>
	</AimSection>
	<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 change method of the Order (tlbct790) Business Object.</FigIntro>
			<HTML:IMG height="490" width="571" SRC="../images/nt_screen_000020ba.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020ba.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020ba.gif" ID="IDASXBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/><FigCaption>tl bct bl790bcgrq0000.xsd tlbct790-Change-Request</FigCaption>
		</Figure>
	</GeneralSection>
	<GeneralSection><SectionTitle>Enter request</SectionTitle>
		<Paragraph class="Default">The main difference between the Create method and the Change method is that the Change method runs on an existing object in ERP LN
                           </Paragraph>
		<Figure space-and-orientation="indented-estimated"><HTML:IMG height="226" width="566" SRC="../images/nt_screen_000020bb.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020bb.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020bb.gif" ID="IDA1XBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Figure space-and-orientation="indented-estimated"><HTML:IMG height="214" width="566" SRC="../images/nt_screen_000020bc.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020bc.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020bc.gif" ID="IDAHYBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Figure space-and-orientation="indented-estimated"><FigIntro>As you can see by the red markings in the Graphical Browser, specifying the object ID is mandatory:</FigIntro>
			<HTML:IMG height="432" width="372" SRC="../images/nt_screen_000020bd.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020bd.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020bd.gif" ID="IDAQYBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default"></Paragraph>
		<Paragraph class="Default">You are free to fill in the attributes that must be changed. In the previous example, the installAt attribute must be changed from COR to TOM on the header, and the orderedQuantityValue attribute must be changed from 100 to 8.</Paragraph>
		<Important><SectionTitle>Note</SectionTitle>
			<Paragraph class="Default">The attributes that must not be modified must be removed from the Graphical Browser.</Paragraph>
		</Important>
		<GeneralSection ID="actiontype"><SectionTitle>Action type</SectionTitle>
			<Paragraph class="Default">For the Change method, some additional functionality is available. On the component level, you must enter the action type.</Paragraph>
			<List><ListIntro>You can find the following menu options in the Menu Browser's <GUIRef href="" role="manual">Specific</GUIRef> menu:</ListIntro>
				<ListItem>Set Action Type `Create'</ListItem>
				<ListItem>Set Action Type `Change'</ListItem>
				<ListItem>Set Action Type `Delete'</ListItem>
				<ListItem>Set Action Type `Unchanged'</ListItem>
			</List>
			<Paragraph class="Default">You can also select these options on the shortcut menu when you right-click a component.</Paragraph>
			<Paragraph class="Default">In this way, you can also delete lines by means of the Change method.</Paragraph>
			<Figure space-and-orientation="indented-estimated"><FigIntro>The next request is an example in which the installAt attribute will be changed and lineNumber 10 will be deleted.</FigIntro>
				<HTML:IMG height="426" width="373" SRC="../images/nt_screen_000020be.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020be.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020be.gif" ID="IDAZYBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		</GeneralSection>
		<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>
	</GeneralSection>
	<GeneralSection><SectionTitle>Execute test</SectionTitle>
		<Paragraph class="Default">After the Request argument is created, 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>For a successful execution, the <GUIRef href="" role="manual">Response</GUIRef> Graphical Browser looks as follows:</FigIntro>
			<HTML:IMG height="286" width="401" SRC="../images/nt_screen_000020bf.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020bf.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020bf.gif" ID="IDACZBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default"></Paragraph>
		<Paragraph class="Default">As you can see, the <GUIRef href="" role="manual">Response</GUIRef> Graphical Browser does not contain information.</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>View result</SectionTitle>
		<Figure space-and-orientation="indented-estimated"><FigIntro>Assume that the application logic as follows. You cannot modify the installAtBP attribute if the order is Approved:</FigIntro>
			<HTML:IMG height="224" width="566" SRC="../images/nt_screen_000020bg.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020bg.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020bg.gif" ID="IDALZBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<Paragraph class="Default"></Paragraph>
		<Paragraph class="Default">The DAL script contains the following code:</Paragraph>
		<CodeBlock space-and-orientation="indented-estimated">function extern domain tcbool tlbct700.bpsh.is.readonly()
{
  if tlbct700.stat = tlbct.stat.approved then
     dal.set.error.message("@Order is approved")
     return(true)
  endif

		return(false)
}</CodeBlock>
		<Figure space-and-orientation="indented-estimated"><FigIntro>In that case, an error is presented in the <GUIRef href="" role="manual">Result</GUIRef> Graphical Browser format:</FigIntro>
			<HTML:IMG height="559" width="519" SRC="../images/nt_screen_000020bh.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020bh.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020bh.gif" ID="IDAUZBAC" 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>
