﻿<?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?)  » Newbie question: Null DateTime Fields</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 25 Sep 2026 13:11:31 GMT</lastBuildDate><ttl>20</ttl><item><title>Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5065.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I am throwing together a proof-of-concept application using StrataFrame.&amp;nbsp; We have several fields in our SQL datatables that allow null's (in fact most of them).&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Say I have a birthdate field in a personmaster table.&amp;nbsp;&amp;nbsp; If the value is null, the bo throws an exception when I navigate to the record.&amp;nbsp; I have tried setting the alternate value on null to several things such as System.DBNull and System.DBNull.Value etc.&amp;nbsp; However it will not compile.&lt;/P&gt;&lt;P&gt;How does everyone else handle null values in their BO's especially datetime type fields?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ben, Emergitech</description><pubDate>Thu, 07 Dec 2006 14:17:46 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5088.aspx</link><description>We think we are familiar with our competitors but are always willing to learn more. I appreciate your input and compliements and we look forward to working with you.</description><pubDate>Thu, 07 Dec 2006 14:17:46 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5086.aspx</link><description>Lucky me! :D&amp;nbsp; On a lighter note, thank you for developing such a wonderful framework!&amp;nbsp;&amp;nbsp; Did you guys ever give Clarion a peek?&amp;nbsp; It does a lot of what you are accomplishing with StrataFrame and more.&amp;nbsp; However, the company that develops the language has lagged behind in technology over the years and the company I work for has had enough...which is the reason why we are moving to .NET.&lt;/P&gt;&lt;P&gt;If you want a RDC/VNC/PCAnywhere demo of the product, please let me know.&amp;nbsp; I would be more than happy to show you the power of Clarion so you can replicate it &amp;lt;grin&amp;gt;.&lt;/P&gt;&lt;P&gt;Ben</description><pubDate>Thu, 07 Dec 2006 14:14:44 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5082.aspx</link><description>Just so it makes a little sense....we enhanced the DateTimePicker in the last update which introduced the minor issue...as luck would have it, you ran into the obscure requirements for this to happen :)&amp;nbsp; At any rate, you can get it in your next update and it will resolve itself.</description><pubDate>Thu, 07 Dec 2006 13:35:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5080.aspx</link><description>Wonderful.&amp;nbsp; I can wait for the fix since I am just evaluating and creating a POC application.&amp;nbsp; I thought I was doing something wrong.&amp;nbsp; Glad to hear you have a fix for it.</description><pubDate>Thu, 07 Dec 2006 13:31:51 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5079.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;We fixed a bug the other day that was affecting the IsDirty of the BO which will effect the Save and Undo buttons when refreshed.&amp;nbsp; This has been fixed and will be posted in the next update.&amp;nbsp; If this is keeping you from moving forward then we can give you a temporary fix, but if you are just on eval mode then this may not be an issue and you can just get a fix on the next update.</description><pubDate>Thu, 07 Dec 2006 13:17:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5074.aspx</link><description>I don't think the two are related.&amp;nbsp; A BO field has no control of the editing state of a BO.&amp;nbsp; The MaintenanceFormToolstrip follows the EditingState of the business object.&amp;nbsp; I would look for other things that may have changed.&lt;/P&gt;&lt;P&gt;The editing state is controled off of the EditingState of the BO which is changed from the Add(), Edit(), Save(), and Undo() of a BO or form.&amp;nbsp;</description><pubDate>Thu, 07 Dec 2006 12:08:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5073.aspx</link><description>Thank you.&amp;nbsp; Did as you said, now the datetimepicker control shows blank on Null fields!&amp;nbsp; Awesome.&amp;nbsp; But (there is always that huh?)&amp;nbsp;I now have a new issue since doing this. I have defined a master-&amp;gt;detail form.&amp;nbsp; The Birthdate field which I was having issues with is defined in the parent BO.&amp;nbsp;&amp;nbsp; Now since added the #1/1/1800# code to the BO, the Save/Undo buttons enable themselves whenever I navigate to a table entry that has a blank birthdate!&amp;nbsp; Ideas???</description><pubDate>Thu, 07 Dec 2006 12:03:27 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5072.aspx</link><description>Create a field customization on your date time field to "Return an Alternate Value" of #1/1/1800#.&amp;nbsp; Then rebuild your partial and run your application.&amp;nbsp; If you are using the SF DateTimePicker then by default the NULL dates will be "empty" until you assign a value.</description><pubDate>Thu, 07 Dec 2006 11:51:26 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5070.aspx</link><description>OK I see that.&amp;nbsp; We are new to this .NET thing.&amp;nbsp; Do you have a code snippet you can post to show us how to handle specifically Null datetimes that are bound to DateTimePicker control?</description><pubDate>Thu, 07 Dec 2006 11:46:55 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Newbie question: Null DateTime Fields</title><link>http://forum.strataframe.net/FindPost5067.aspx</link><description>You will use a field customization to add NULL support.&amp;nbsp; You can find this in the Application Framework help:&lt;/P&gt;&lt;P&gt;Business Layer -&amp;gt; Business Object Mapper -&amp;gt; Customizing a Field</description><pubDate>Thu, 07 Dec 2006 11:39:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>