<?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: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/78392.aspx</link><pubDate>Wed, 09 May 2012 13:41:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78392</guid><dc:creator>kac.dev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=78392</wfw:commentRss><description>Dear Sir,

I am new user of Infopath and have no basic knowledge of script.

Please any one help me to how to put these code and where ?


Thank you</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/33947.aspx</link><pubDate>Thu, 06 Nov 2008 16:26:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33947</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33947</wfw:commentRss><description>&lt;p&gt;Yes, it should, as this is VBScript.&lt;/p&gt;</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/33917.aspx</link><pubDate>Wed, 05 Nov 2008 19:29:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33917</guid><dc:creator>Scotl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33917</wfw:commentRss><description>&lt;p&gt;This script will work in InfoPath 2003?&lt;/p&gt;</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9237.aspx</link><pubDate>Mon, 06 Mar 2006 16:02:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9237</guid><dc:creator>jkrdoom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9237</wfw:commentRss><description>Thanks I'll give it a shot.</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9236.aspx</link><pubDate>Mon, 06 Mar 2006 01:21:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9236</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9236</wfw:commentRss><description>Here is the code sample using VBScript.  You need to call it from OnAfterChange event.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub UpdateDateDiff&lt;br /&gt;	Dim fromDate &lt;br /&gt;	Dim toDate&lt;br /&gt;	Dim days &lt;br /&gt;	Dim daysNode&lt;br /&gt;	&lt;br /&gt;	set daysNode = XDocument.DOM.selectSingleNode("/my:myFields/my:DaysRemaining")&lt;br /&gt;	&lt;br /&gt;	fromDate = Trim(XDocument.DOM.selectSingleNode("/my:myFields/my:FromDate").text)&lt;br /&gt;	toDate = Trim(XDocument.DOM.selectSingleNode("/my:myFields/my:ToDate").text)&lt;br /&gt;	&lt;br /&gt;	if Len(fromDate) = 0 Or Len(toDate) = 0 Then&lt;br /&gt;		daysNode.text = "n/a"&lt;br /&gt;	else&lt;br /&gt;		fromDate = CDate(fromDate)&lt;br /&gt;		toDate = CDate(toDate)&lt;br /&gt;		days = DateDiff("d", fromDate, toDate)&lt;br /&gt;&lt;br /&gt;		' Determine whether the xsi:nil attribute is set for this&lt;br /&gt;		' element. If so, remove the xsi:nil attributes so that&lt;br /&gt;		' the value can be set.&lt;br /&gt;		if Not IsNull(daysNode.getAttribute("xsi:nil")) then&lt;br /&gt;	          daysNode.removeAttribute("xsi:nil")&lt;br /&gt;	    end if&lt;br /&gt;        daysNode.text = CStr(days)&lt;br /&gt;	end if&lt;br /&gt;End Sub&lt;br /&gt;</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9235.aspx</link><pubDate>Sun, 05 Mar 2006 23:07:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9235</guid><dc:creator>jkrdoom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9235</wfw:commentRss><description>I have a confession to make. I've got no coding knowledge whatsoever. I work for a company that does lit support(e-discovery, digital forensics, legal database production). We have don't have any programmer's on our staff and somehow I've gotten stuck heading up the devolpment of tracking systems for our workflow.Sadness!!! I was doing fine with rules and formula until I started coming up with more ambitiuos designs. Looks like I'm going to have to learn basic coding!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Long story short I'm frightened and lost in the wonderful world of coding!!!</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9234.aspx</link><pubDate>Sun, 05 Mar 2006 22:46:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9234</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9234</wfw:commentRss><description>It sounds like you don't have Visual Studio. Your options will be either VBScript or JScript.  The code will be a bit different for each.  Are you familiar at all with VB?</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9233.aspx</link><pubDate>Sun, 05 Mar 2006 22:42:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9233</guid><dc:creator>jkrdoom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9233</wfw:commentRss><description>Not doing anything with code. I'm just using rules and formula for what I need. &lt;br /&gt;&lt;br /&gt;...should I send money??? :&amp;gt;</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9232.aspx</link><pubDate>Sun, 05 Mar 2006 22:22:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9232</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9232</wfw:commentRss><description>What language are you using?  I can write a little piece of code to help out.</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9231.aspx</link><pubDate>Sun, 05 Mar 2006 22:19:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9231</guid><dc:creator>jkrdoom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9231.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9231</wfw:commentRss><description>Looks like I'll have to use code and a few bottles of wine to deal with this!!&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9230.aspx</link><pubDate>Sun, 05 Mar 2006 22:05:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9230</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9230</wfw:commentRss><description>Unfortunately there is no DateDiff formula in InfoPath.  You have use code.</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9229.aspx</link><pubDate>Sun, 05 Mar 2006 21:35:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9229</guid><dc:creator>jkrdoom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9229</wfw:commentRss><description>perfect!!!&lt;br /&gt;&lt;br /&gt;The only problem is code makes cry! :&amp;gt; &lt;br /&gt;Is there a way I could do this with the fields value formula?</description></item><item><title>Re: coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/9228.aspx</link><pubDate>Sun, 05 Mar 2006 21:30:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9228</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9228.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9228</wfw:commentRss><description>This article has information regarding Date Calculations in InfoPath, which might answer your first question.&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx&gt;http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx&lt;/a&gt;</description></item><item><title>coutdown field</title><link>https://www.infopathdev.com:443/forums/thread/5420.aspx</link><pubDate>Sun, 05 Mar 2006 21:20:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5420</guid><dc:creator>jkrdoom</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5420.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5420</wfw:commentRss><description>I need to have a field that displays the number of days left for a project. I have a field showing todays date, and one showing the project deadline date. I'd like to display the remaing days in a 3rd field. I'd also like to disable the 3rd control once the deadline has been met.</description></item></channel></rss>