<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12819.aspx</link><pubDate>Tue, 19 Jun 2012 20:18:36 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12819</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12819.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12819</wfw:commentRss><description>&lt;p&gt;After typing the post I searched for &lt;i&gt;debugging&lt;/i&gt; on the forums and found this &lt;a target="_blank" title="thread" href="http://www.methodintegration.com/cs/forums/p/1843/6567.aspx#6567"&gt;great thread&lt;/a&gt;&amp;nbsp;(which you started!) with other tips. &amp;nbsp;My favourite trick was from LaCrews - use a label object on screen and use the &lt;i&gt;enter value into field on screen&lt;/i&gt; as you step through the loop. &amp;nbsp;It wouldn&amp;#39;t work in all instances but it&amp;#39;s another nice way to see what&amp;#39;s happening as your loop processes.&lt;/p&gt;
&lt;p&gt;Try some of the debugging tips and you should be able to figure out where that min date is being added.&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12818.aspx</link><pubDate>Tue, 19 Jun 2012 19:44:29 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12818</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12818.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12818</wfw:commentRss><description>&lt;p&gt;Makes total sense...that&amp;#39;s pretty much what I described in my previous post. As soon as I started doing more things in loops within Actions, I started doing something very similar to what you describe. It&amp;#39;s been helpful.&lt;/p&gt;
&lt;p&gt;Thx&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12817.aspx</link><pubDate>Tue, 19 Jun 2012 19:37:56 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12817</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12817.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12817</wfw:commentRss><description>&lt;p&gt;This might be a little redundant but for debugging it could help. &amp;nbsp;This is a trick I use to capture all the processing steps on an AR to see if something went wrong and where.&lt;/p&gt;
&lt;p&gt;Call one of your ARs &lt;i&gt;debug&lt;/i&gt;&amp;nbsp;and use the character function to join the results together as they process. &amp;nbsp;For example, as soon as you pull the date to do your processing, call a character function and set the value of this date to the &lt;i&gt;debug&lt;/i&gt; AR before and after processing. &amp;nbsp;Join all your results with a comma and make sure you join the Action Result to itself so you&amp;#39;ll continue to build the list. &amp;nbsp;In my example, all my character functions end with Join to: Action Result - &lt;i&gt;debug&lt;/i&gt;, Action Result name: &lt;i&gt;debug&lt;/i&gt;.&lt;/p&gt;
&lt;p&gt;Let me know if this makes sense.&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12807.aspx</link><pubDate>Tue, 19 Jun 2012 15:46:03 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12807</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12807.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12807</wfw:commentRss><description>&lt;p&gt;Thx.&lt;/p&gt;
&lt;p&gt;Using show message isn&amp;#39;t allowed since this is all being done in a loop. What I have done is write these values into a variable and then dump it to a field on the screen (like trace or debug info).&lt;/p&gt;
&lt;p&gt;This trace info shows an empty value prior to insert. But the insert statement goes the Min Date route, for some reason.&lt;/p&gt;
&lt;p&gt;I may have to break down and do a subsequent update on the record after the insert, looking for the Min Date and updating it to an empty value and see if that works.&lt;/p&gt;
&lt;p&gt;The other thing I&amp;#39;m thinking about that might make this problem moot (more of a process improvement) is disallow an empty date for these records altogether. I&amp;#39;m starting to think this may serve my salesmen and the order process better in the long run anyway. So that option is on the table at this point, as well.&lt;/p&gt;
&lt;p&gt;Thx&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12805.aspx</link><pubDate>Tue, 19 Jun 2012 15:29:46 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12805</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12805.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12805</wfw:commentRss><description>&lt;p&gt;I would add a couple of show message popups with your action results before and after your Date Add function. &amp;nbsp;I&amp;#39;m not sure the Insert action would do something like add a min date - the insert action just inserts a new row with the information you give it. &amp;nbsp;As a test, try changing to a different, blank AR to eliminate any possibility of the coppied AR causing a problem when it has no value. &amp;nbsp;Make sure to keep adding a show message popup before and after any AR changes to see where it might be breaking down.&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12798.aspx</link><pubDate>Mon, 18 Jun 2012 21:40:30 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12798</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12798.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12798</wfw:commentRss><description>&lt;p&gt;One thing that &lt;i&gt;might&lt;/i&gt; make a difference is that I&amp;#39;m adjusting the date (Date Add of 1 year) when copying one record and inserting a new one.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m creating an Action Result first, then if the date field on the row I&amp;#39;m copying has a value (e.g. if it&amp;#39;s not empty), I do a Date Add and use that value to insert the new row. If the date field I&amp;#39;m copying from &lt;i&gt;does not&lt;/i&gt; have a value, then the empty Action Result I assigned initially is written (it&amp;#39;s just a blank value).&lt;/p&gt;
&lt;p&gt;Perhaps that empty Action Result I created is un-typed (or at least it&amp;#39;s type is NOT a date time) and so the insert is just putting the Min Date in there by default?&lt;/p&gt;
&lt;p&gt;That might be what is going on.&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12796.aspx</link><pubDate>Mon, 18 Jun 2012 20:29:16 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12796</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12796.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12796</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/cs/Themes/methodtheme/images/icon-quote.gif"&gt; &lt;strong&gt;Blake C:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Make sense?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;It makes sense but I&amp;#39;ll have to do some more testing to recreate your scenario described. &amp;nbsp;In my testing I was using the &lt;i&gt;Insert Records&lt;/i&gt; action and I created a blank table with 2 fields, name and date. &amp;nbsp;I added several records with and without dates then created a button to copy the selected row and insert it back into the table. &amp;nbsp;In my testing this worked perfectly and blank dates were copied no problem. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I then recreated this screen with a table where the date was required. &amp;nbsp;I had to modify the Insert action but I basically copied the row and zeroed out the date field before calling &lt;i&gt;Insert Record&lt;/i&gt; - every time I tried this I got the min date (Dec-31-1899). &amp;nbsp;If the date is not required as you say then I would explore the action sequence where you insert - something here must be triggering the min date value.&lt;/p&gt;
&lt;p&gt;Try a &lt;i&gt;Show Message&lt;/i&gt; action with the &lt;i&gt;Action Result&lt;/i&gt; of the date field before you insert and after the copy action.&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12786.aspx</link><pubDate>Mon, 18 Jun 2012 15:01:06 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12786</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12786.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12786</wfw:commentRss><description>&lt;p&gt;This is custom table of mine. The date field is not currently required. The screen where we maintain this data has a Date dropdown that allows an empty value to be saved. I&amp;#39;ve exported this data and it&amp;#39;s currently saved as an empty value.&lt;/p&gt;
&lt;p&gt;However, in my custom action where I retrieve the empty date value from one record, then insert that value into a new record, behind the scenes that empty date is intercepted and replaced by the &amp;#39;Dec-31-1899&amp;#39; date (a Min Date, it seems).&lt;/p&gt;
&lt;p&gt;It seems like the Insert Record action assumes the Date field is required and is replacing the empty with the Min Date rather than looking at the column&amp;#39;s definition that should allow an empty value.&lt;/p&gt;
&lt;p&gt;Make sense?&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12783.aspx</link><pubDate>Mon, 18 Jun 2012 14:27:24 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12783</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12783.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12783</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/cs/Themes/methodtheme/images/icon-quote.gif"&gt; &lt;strong&gt;Blake C:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Does this make sense?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;I was just able to recreate this problem and it only happens when you try to insert no date into a table which requires a date. &amp;nbsp;You cannot write a NULL value into a table when that field is required.&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12781.aspx</link><pubDate>Mon, 18 Jun 2012 13:39:53 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12781</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12781.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12781</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/cs/Themes/methodtheme/images/icon-quote.gif"&gt; &lt;strong&gt;Blake C:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Why is this?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Which table are you copying into? &amp;nbsp;Depending on the table the date might be a required field so it may not accept a NULL value. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;</description></item><item><title>Re: How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12775.aspx</link><pubDate>Fri, 15 Jun 2012 20:56:45 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12775</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12775.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12775</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m testing this on my local account and will post up a reply when I can confirm this behaviour.&lt;/p&gt;
&lt;p&gt;~C&lt;/p&gt;</description></item><item><title>How To Insert NULL In Date Field From An Action</title><link>http://forums.method.me/cs/forums/thread/12765.aspx</link><pubDate>Fri, 15 Jun 2012 14:43:25 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:12765</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/12765.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=12765</wfw:commentRss><description>&lt;p&gt;I have an action that creates new rows in a table based on existing rows (basic copy). One field in the table is a date field. On the UI, this date field is set using the Calendar widget. Empty is a valid value and when the record is saved from my custom UI screen, a NULL (or empty) value is written and it works just fine.&lt;/p&gt;
&lt;p&gt;In my action when copying this NULL value from one row to the new one, the value actually saved is &amp;#39;Dec-31-1899&amp;#39;.&lt;/p&gt;
&lt;p&gt;Why is this? How can I write a NULL value to a date field in an action&amp;#39;s Insert statement? Obviously, the Calendar widget can do this. How can I do this in an action?&lt;/p&gt;
&lt;p&gt;Does this make sense?&lt;/p&gt;
&lt;p&gt;Thx!&lt;/p&gt;</description></item></channel></rss>