﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » 1/1/1800 Appearing As Default When Dates are NULL</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 21:32:43 GMT</lastBuildDate><ttl>20</ttl><item><title>1/1/1800 Appearing As Default When Dates are NULL</title><link>http://forum.strataframe.net/FindPost5569.aspx</link><description>Hi Folks&lt;/P&gt;&lt;P&gt;I am real confident I'm doing something wrong in my setup here but don't know how to fix this. &lt;/P&gt;&lt;P&gt;When I don't assign a value to a BO date field, they are being assigned a date of 1/1/1800 somehow (see below image and where the breakpoint currently is in relation to the value being displayed)&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/966260d4-d297-41c0-b6ba-09e5.jpg"&gt;&lt;/P&gt;&lt;P&gt;I have setup my BO to return 1/1/1980 on NULL but that is not coming through.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/c0f826e8-196c-46f1-b210-ebbe.jpg"&gt;&lt;/P&gt;&lt;P&gt;Any idea what I am doing wrong?</description><pubDate>Thu, 04 Jan 2007 11:14:26 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: 1/1/1800 Appearing As Default When Dates are NULL</title><link>http://forum.strataframe.net/FindPost5574.aspx</link><description>:)</description><pubDate>Thu, 04 Jan 2007 11:14:26 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: 1/1/1800 Appearing As Default When Dates are NULL</title><link>http://forum.strataframe.net/FindPost5572.aspx</link><description>Now it all comes clear! Thanks Ben</description><pubDate>Thu, 04 Jan 2007 11:06:33 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: 1/1/1800 Appearing As Default When Dates are NULL</title><link>http://forum.strataframe.net/FindPost5570.aspx</link><description>The business objects have a property called AllowNullValuesOnNewRow that when False (the default), tells the business object to initialize all values on a new row to avoid any NULL values.&amp;nbsp; Strings are initialized to an empty string, numbers are initialized to 0, and dates are initialized to #01/01/1800#.&amp;nbsp; The code in the SetDefaultValues() method gets executed right after the row is initialized.&amp;nbsp; So, if you want to set only the one date time field to NULL so that your 01/01/1980 shows through, you can do this within the SetDefaultValues() method:&lt;/P&gt;&lt;P&gt;Me.CurrentRow("DRAFT_REVIEW_DATE") = DBNull.Value&lt;/P&gt;&lt;P&gt;If you want all of the fields to have NULL values, then you can set the AllowNullValuesOnNewRow property to False, but that might be a little more than you want :)</description><pubDate>Thu, 04 Jan 2007 10:57:10 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>