<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Edit Form Allow Empty Date Field</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-allow-empty-date-field</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/edit-form-allow-empty-date-field/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Edit Form Allow Empty Date Field</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-allow-empty-date-field#p26399</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-form-allow-empty-date-field#p26399</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Please post he problem in the rigth forum</p>
<p><a href="http://www.trirand.net/forum/" rel="nofollow" target="_blank">http://www.trirand.net/forum/</a></p>
</p>
<p>Thank you</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 18 Apr 2012 12:24:19 +0300</pubDate>
        </item>
        <item>
        	<title>scrombie on Edit Form Allow Empty Date Field</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-form-allow-empty-date-field#p26387</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-form-allow-empty-date-field#p26387</guid>
        	        	<description><![CDATA[<p>I have an add/edit form that needs to accept blank entries for a date field.&#160; When the entry is submitted blank, I get the following error...</p>
<p>PHP Notice:  Undefined offset: 0 in C:\Inetpub\wwwroot\Resources\jqGrid42\php\jqGrid.php on line 4093 PHP Notice:  Undefined offset: 0 in C:\Inetpub\wwwroot\Resources\jqGrid42\php\jqGrid.php on line 4093 PHP Notice:  Undefined offset: 0 in C:\Inetpub\wwwroot\Resources\jqGrid42\php\jqGrid.php on line 4093</p>
<p>If I enter &#39;null&#39; in the field, it responds as desired (entering a NULL in the database field); however, I cannot expect my users to enter &#39;null&#39; for this field.</p>
</p>
<p>The following is the configuration for the field and form...</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9384' value='Select Code' data-codeid='sfcode9384' /></p>
<div class='sfcode' id='sfcode9384'>$grid-&#62;setColProperty(&#39;PaidDate&#39;,array(<br />&#160;&#160; &#160;&#34;align&#34;=&#62;&#34;center&#34;,<br />&#160;&#160; &#160;&#34;width&#34;=&#62;60,<br />&#160;&#160; &#160;&#34;label&#34;=&#62;&#34;Paid Date&#34;,<br />&#160;&#160; &#160;&#34;formatter&#34;=&#62;&#34;date&#34;,<br />&#160;&#160; &#160;&#34;formatoptions&#34;=&#62;array(&#34;srcformat&#34;=&#62;&#34;Y-m-d H:i:s&#34;,&#34;newformat&#34;=&#62;&#34;m/d/Y&#34;),<br />&#160;&#160; &#160;&#34;editable&#34;=&#62;true,<br />&#160;&#160; &#160;&#34;editoptions&#34;=&#62;array(&#34;dataInit&#34;=&#62;&#34;js:&#34;.$mydatepicker),<br />&#160;&#160; &#160;&#34;searchoptions&#34;=&#62;array(&#34;dataInit&#34;=&#62;&#34;js:&#34;.$mydatepicker),<br />&#160;&#160; &#160;&#34;formoptions&#34;=&#62;array(&#34;elmsuffix&#34;=&#62;&#34;&#160; (mm/dd/yyyy)&#34;)&#160;&#160; &#160;<br />));</div>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1839' value='Select Code' data-codeid='sfcode1839' /></p>
<div class='sfcode' id='sfcode1839'>$grid-&#62;setNavOptions(&#39;edit&#39;, array(&#34;height&#34;=&#62;&#34;auto&#34;,&#34;width&#34;=&#62;&#34;auto&#34;,&#34;dataheight&#34;=&#62;&#34;auto&#34;,&#34;closeAfterEdit&#34;=&#62;true,&#34;editCaption&#34;=&#62;&#34;Edit Cash NSF Sale&#34;));<br />$grid-&#62;setNavOptions(&#39;add&#39;, array(&#34;height&#34;=&#62;&#34;auto&#34;,&#34;width&#34;=&#62;&#34;auto&#34;,&#34;dataheight&#34;=&#62;&#34;auto&#34;,&#34;closeAfterAdd&#34;=&#62;true,&#34;addCaption&#34;=&#62;&#34;Add Cash NSF Sale&#34;));</div>
</p>
<p>I&#39;m using php and SQL Server.</p>
</p>
<p>How can I get NULL entered in the database for a date field with no input?</p>
</p>
<p>Steven</p>
]]></description>
        	        	<pubDate>Tue, 17 Apr 2012 21:36:27 +0300</pubDate>
        </item>
</channel>
</rss>