<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Help Using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/28468.aspx</link><pubDate>Fri, 02 May 2008 08:30:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28468</guid><dc:creator>Jon_Smith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28468.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28468</wfw:commentRss><description>&lt;p&gt;I am still lost, I dont have 2007 so I can&amp;#39;t copy the Xpath, and I am unsure exactly how to do the other stuff, I have attempted but cant find anything resembling&amp;nbsp; //my:myfields/ etc, could you explain how I check the main data source and how to extract the source files,&lt;/p&gt;
&lt;p&gt;sorry about needing to be spoon fed here.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jon Smith&lt;/p&gt;</description></item><item><title>Re: Help Using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/28453.aspx</link><pubDate>Thu, 01 May 2008 13:56:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28453</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28453</wfw:commentRss><description>&lt;p&gt;If you have InfoPath 2007 you can actually right click a node in your data source and select Copy Xpath to get the exact syntax but this can be tough.&lt;/p&gt;
&lt;p&gt;Check you main data source. DFS is used on database type forms where the my prefix is the default.&lt;/p&gt;
&lt;p&gt;You also can extract the source files and open the manifest in notepad to see the XML.&lt;/p&gt;</description></item><item><title>Re: Help Using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/28450.aspx</link><pubDate>Thu, 01 May 2008 07:54:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28450</guid><dc:creator>Jon_Smith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28450</wfw:commentRss><description>&lt;p&gt;Thanks Clay Fox&lt;/p&gt;
&lt;p&gt;the problem is more that I am unsure where and how to put code into the microsoft script editor, it seems vastly different to visual basic editor which is what I am used to&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jon Smith&lt;/p&gt;
&lt;p&gt;Edit-&lt;/p&gt;
&lt;p&gt;I Have now got my head around putting simple VB code into the script editor, but I am struggling with the referencing nodes as in like&lt;/p&gt;
&lt;p&gt;XDocument.DOM.selectNodes(&amp;quot;//dfs:myFields/dfs:dataFields/d:WFPJob&amp;quot;)&lt;/p&gt;
&lt;p&gt;I dont get the (&amp;quot;//dfs:myFields/dfs:dataFields/d:WFPJob&amp;quot;) part, if I wanted to reference &amp;quot;Field1&amp;quot; in &amp;quot;Myfields&amp;quot; that I just made would it be (&amp;quot;//dfs:myFields/dfs:field1&amp;quot;) or something like&amp;nbsp;&amp;nbsp;(&amp;quot;//my:myFields/my:field1&amp;quot;) as I have seen different examples but neither of them seem to work for me&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jon Smith&lt;/p&gt;</description></item><item><title>Re: Help Using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/28427.aspx</link><pubDate>Wed, 30 Apr 2008 16:49:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28427</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28427</wfw:commentRss><description>&lt;p&gt;Hi Jon.&lt;/p&gt;
&lt;p&gt;In this thread i have attached a txt file with sample code.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/5646/21172.aspx#21172"&gt;http://www.infopathdev.com/forums/p/5646/21172.aspx#21172&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should be able to modify it to address your fields and schema or use it as a guide.&lt;/p&gt;</description></item><item><title>Help Using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/28426.aspx</link><pubDate>Wed, 30 Apr 2008 15:52:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28426</guid><dc:creator>Jon_Smith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28426</wfw:commentRss><description>&lt;p&gt;Hey everyone,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am wanting to use the datediff code but I am completely confused by the Microsoft Script Editor, I&amp;nbsp;taught myself coding using Visual Basic Code in Excel using the Visual Basic Editor and use that frequently but I can&amp;#39;t get started with Microsoft Script Editor,&lt;/p&gt;
&lt;p&gt;would someone be kind enough to either point me in the direction of a full tutorial or be willing to give me a step by step guide,&lt;/p&gt;
&lt;p&gt;for example I will make a blank form with a Date1 field a Date2 field and a DateDiff field and would require step by step guide from there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jon Smith&lt;/p&gt;</description></item></channel></rss>