<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/35697.aspx</link><pubDate>Thu, 11 Dec 2008 20:06:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35697</guid><dc:creator>ACrush</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35697.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35697</wfw:commentRss><description>&lt;p&gt;Yes, xsi:nil=&amp;#39;true&amp;#39; or &amp;#39;1&amp;#39;&amp;nbsp;is the one and only. see the XML Schema standard for confirmation&lt;/p&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/31783.aspx</link><pubDate>Thu, 28 Aug 2008 05:30:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31783</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31783</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Set the xsi:nil value to &amp;#39;True&amp;#39; and try.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/31771.aspx</link><pubDate>Wed, 27 Aug 2008 22:43:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31771</guid><dc:creator>faivre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31771</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Hi Michael,&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Unfortunately I never found a solution.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I you do, please let me know.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Brian&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/31769.aspx</link><pubDate>Wed, 27 Aug 2008 21:24:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31769</guid><dc:creator>Michael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31769.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31769</wfw:commentRss><description>&lt;p&gt;Hi Brian&lt;/p&gt;
&lt;p&gt;Have you found a solution to this problem yet? I have come across the exact same issue with an InfoPath form, but cannot see how to set the attribute xsi:nil=true using JScript.&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/27430.aspx</link><pubDate>Tue, 25 Mar 2008 22:30:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27430</guid><dc:creator>bfaivre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27430</wfw:commentRss><description>&lt;p&gt;Here is some more information:&lt;/p&gt;
&lt;p&gt;When the form is first loaded the date picker xml looks like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;lt;my:ToDt xmlns:my=\&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-16T17:42:12/"&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-16T17:42:12\&lt;/a&gt;&amp;quot; xmlns:xsi=\&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema-instance/"&gt;http://www.w3.org/2001/XMLSchema-instance\&lt;/a&gt;&amp;quot; xsi:nil=\&amp;quot;true\&amp;quot;&amp;gt;&amp;lt;/my:ToDt&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;After&amp;nbsp;selecting a date via the control then&amp;nbsp;via code changing the text to&amp;nbsp;string.empty the xml looks like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;lt;my:ToDt xmlns:my=\&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-16T17:42:12/%22%3E%3C/my:ToDt"&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-11-16T17:42:12\&amp;quot;&amp;gt;&amp;lt;/my:ToDt&lt;/a&gt;&amp;gt;&amp;quot;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m guessing I need to get the xsi:nil=true back into the xml?&amp;nbsp; Can anyone confirm this and provide some insight on how to do this if this is the proper solution.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Brian&lt;/p&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/27403.aspx</link><pubDate>Mon, 24 Mar 2008 22:41:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27403</guid><dc:creator>bfaivre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27403</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Thanks for your help.&amp;nbsp; I am working with a DB.&amp;nbsp; A no value setfield action and/or using empty.string still display the red asterisk with screen tip.&amp;nbsp; This is not preventing my form from working correctly, however, when the form is loaded this date picker is blank and it does not display the red asterisk.&amp;nbsp; Same as if I were to delete a date in it.&amp;nbsp; Both of these actions don&amp;#39;t exhibit the red asterisk.&amp;nbsp; What I&amp;#39;m concerned with is user confusion when I need to programmatically set the date picker to empty.string and the red asterisk displayed.&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/27401.aspx</link><pubDate>Mon, 24 Mar 2008 21:36:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27401</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27401</wfw:commentRss><description>&lt;p&gt;I just tried it in a form, using rules.&lt;/p&gt;
&lt;p&gt;One option is to change your field from a date to a string but if it is linked to a DB you do not have that option.&lt;/p&gt;
&lt;p&gt;Setting it to no value with a setfield action works fine. With code you want to use empty.string or an equivalent&lt;/p&gt;
&lt;p&gt;I found a post that discusses this. &lt;a href="http://www.infopathdev.com/forums/p/5062/19553.aspx#19553"&gt;http://www.infopathdev.com/forums/p/5062/19553.aspx#19553&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/27400.aspx</link><pubDate>Mon, 24 Mar 2008 21:08:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27400</guid><dc:creator>bfaivre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27400</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Setting it to null still exhibits the same behavior.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/27393.aspx</link><pubDate>Mon, 24 Mar 2008 16:59:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27393</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27393</wfw:commentRss><description>&lt;p&gt;I think you would want to set it to Null rather than a space or blank string.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Programmatically Setting Date Picker Empty</title><link>https://www.infopathdev.com:443/forums/thread/27390.aspx</link><pubDate>Mon, 24 Mar 2008 15:47:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27390</guid><dc:creator>bfaivre</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27390</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Using jscript I remove the xsi:nil attribute and set the text value of a date picker to “”.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;A red asterisk is displayed in the control screen tip stating “Only date allowed: (example: 2001-03-14)”.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;How can I prevent this from happening?&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Thanks,&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Brian&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>