<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Field Is Required while calling DoSaveNow()</title>
		<link>http://www.peoplesoftwiki.com/forum/t-248449/field-is-required-while-calling-dosavenow</link>
		<description>Posts in the discussion thread &quot;Field Is Required while calling DoSaveNow()&quot; - Field Is Required while calling DoSaveNow()

Why OT_ESS.DATE is stated empty while calling DoSaveNow() althought it already has a value?</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 08 Feb 2012 21:18:45 +0000</lastBuildDate>
		
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-248449#post-865989</guid>
				<title>Re: Field Is Required while calling DoSaveNow()</title>
				<link>http://www.peoplesoftwiki.com/forum/t-248449/field-is-required-while-calling-dosavenow#post-865989</link>
				<description></description>
				<pubDate>Mon, 06 Sep 2010 21:07:36 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Which event do you have this PeopleCode? E.g. Record SavePreChange? Component SavePreChange?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-248449#post-865672</guid>
				<title>Re: Field Is Required while calling DoSaveNow()</title>
				<link>http://www.peoplesoftwiki.com/forum/t-248449/field-is-required-while-calling-dosavenow#post-865672</link>
				<description></description>
				<pubDate>Mon, 06 Sep 2010 14:02:16 +0000</pubDate>
				<wikidot:authorName>mi jo</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>It has a single row which is going to be added.</p> <p>so stange since the &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value already has avalue. But why still got error whial calling doSaveNow().</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-248449#post-863588</guid>
				<title>Re: Field Is Required while calling DoSaveNow()</title>
				<link>http://www.peoplesoftwiki.com/forum/t-248449/field-is-required-while-calling-dosavenow#post-863588</link>
				<description></description>
				<pubDate>Fri, 03 Sep 2010 02:25:05 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Looks like maybe the OT_ESS.DATE field in the second row of the Scroll.OT_ESS? On the page itself, does the second row in the scroll/grid have a value for the DATE field?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-248449#post-863573</guid>
				<title>Re: Field Is Required while calling DoSaveNow()</title>
				<link>http://www.peoplesoftwiki.com/forum/t-248449/field-is-required-while-calling-dosavenow#post-863573</link>
				<description></description>
				<pubDate>Fri, 03 Sep 2010 01:57:52 +0000</pubDate>
				<wikidot:authorName>mi jo</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>I've change the code to<br /> If All(&amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value) Then<br /> DoSaveNow();<br /> End-If;</p> <p>but still got the error</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-248449#post-817028</guid>
				<title>Re: Field Is Required while calling DoSaveNow()</title>
				<link>http://www.peoplesoftwiki.com/forum/t-248449/field-is-required-while-calling-dosavenow#post-817028</link>
				<description></description>
				<pubDate>Sun, 27 Jun 2010 09:50:12 +0000</pubDate>
				<wikidot:authorName>Anonymous</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Does it work if you check for a value of <tt>OT_ESS.DATE</tt> before calling <tt>DoSaveNow()</tt> ? E.g.</p> <div class="code"> <pre> <code>If All(&amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value) Then DoSaveNow(); End-If;</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-248449#post-810589</guid>
				<title>Field Is Required while calling DoSaveNow()</title>
				<link>http://www.peoplesoftwiki.com/forum/t-248449/field-is-required-while-calling-dosavenow#post-810589</link>
				<description></description>
				<pubDate>Thu, 17 Jun 2010 12:36:10 +0000</pubDate>
				<wikidot:authorName>mi jo</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Why OT_ESS.DATE is stated empty while calling DoSaveNow() althought it already has a value?</p> <p>Here is the code in the submit button</p> <div class="code"> <pre> <code>Local Rowset &amp;LocalRowOT; &amp;LocalRowOT = GetLevel0()(1).GetRowset(Scroll.OT_ESS); For &amp;i = ActiveRowCount(Scroll.OT_ESS) To 1 Step - 1 If All(&amp;LocalRowOT(&amp;i).OT_ESS.EMP_RMK.Value) Then &amp;LocalRowOT(&amp;i).OT_ESS.STATUS.Value = "SUB"; End-If; If All(&amp;LocalRowOT(&amp;i).OT_ESS.CODE.Value, &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value, &amp;LocalRowOT(&amp;i).OT_ESS.EMP_RMK.Value) Then &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Enabled = False; &amp;LocalRowOT(&amp;i).OT_ESS.EMP_RMK.Enabled = False; End-If; DoSaveNow(); End-For;</code> </pre></div> <p>I got this error messsage after click the SUBMIT_BTN<br /> <strong>Field Is Required: OT_ESS - DATE</strong></p> <p>I try to display the value so add the code with message boxes:</p> <div class="code"> <pre> <code>Local Rowset &amp;LocalRowOT; &amp;LocalRowOT = GetLevel0()(1).GetRowset(Scroll.OT_ESS); For &amp;i = ActiveRowCount(Scroll.OT_ESS) To 1 Step - 1 MessageBox(0, "", 0, 0, "&amp;i is " | &amp;i | " &amp;LocalRowOT(&amp;i).OT_ESS.DATE is " | &amp;LocalRowOT(&amp;i).OT_ESS.DATE | " &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value is " | &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value); End-For; For &amp;i = ActiveRowCount(Scroll.OT_ESS) To 1 Step - 1 If All(&amp;LocalRowOT(&amp;i).OT_ESS.EMP_RMK.Value) Then &amp;LocalRowOT(&amp;i).OT_ESS.STATUS.Value = "SUB"; End-If; If All(&amp;LocalRowOT(&amp;i).OT_ESS.CODE.Value, &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value, &amp;LocalRowOT(&amp;i).OT_ESS.EMP_RMK.Value) Then &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Enabled = False; &amp;LocalRowOT(&amp;i).OT_ESS.EMP_RMK.Enabled = False; End-If; MessageBox(0, "", 0, 0, "before save : OT_ESS.DATE is " | OT_ESS.DATE | " and OT_ESS.DATE.Value is " | OT_ESS.DATE.Value); DoSaveNow(); End-For;</code> </pre></div> <p>The first Message box<br /> i is <strong>1</strong> &amp;LocalRowOT(&amp;i).OT_ESS.DATE is <strong>Field</strong> &amp;LocalRowOT(&amp;i).OT_ESS.DATE.Value is <strong>2010-06-10</strong></p> <p>The second Message box<br /> before save : OT_ESS.DATE is and OT_ESS.DATE.Value is</p> <p>the field DATE already has a value (displayed in the message box). But why it generates error while calling DoSaveNow() ?</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
