<?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: Create Outlook event using two different Time/Date fields</title><link>https://www.infopathdev.com:443/forums/thread/50812.aspx</link><pubDate>Wed, 20 Jan 2010 21:50:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50812</guid><dc:creator>Nate@GLRM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50812.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50812</wfw:commentRss><description>&lt;p&gt;Thank you very much, it works!&amp;nbsp; For the purposes of confidentiality some form fields were excluded from my template and not named but I do need to do a better job of naming fields, thank you for your guidance.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Create Outlook event using two different Time/Date fields</title><link>https://www.infopathdev.com:443/forums/thread/50809.aspx</link><pubDate>Wed, 20 Jan 2010 21:26:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50809</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50809</wfw:commentRss><description>&lt;p&gt;The XPath to your date field is /my:myFields/my:field29&lt;/p&gt;
&lt;p&gt;I would highly recommend you take a little time and clean up your main data source before you put this into production. Remove all unused fields, and give the fields you are using meaningful names. It will make things easier for you when the form needs revisions....&lt;/p&gt;</description></item><item><title>Re: Create Outlook event using two different Time/Date fields</title><link>https://www.infopathdev.com:443/forums/thread/50806.aspx</link><pubDate>Wed, 20 Jan 2010 21:18:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50806</guid><dc:creator>Nate@GLRM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50806.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50806</wfw:commentRss><description>&lt;p&gt;I attached the template, with the code that I have it looks like dateNode.text is not being recognised.&amp;nbsp; Thank you for your help!&lt;/p&gt;</description></item><item><title>Re: Create Outlook event using two different Time/Date fields</title><link>https://www.infopathdev.com:443/forums/thread/50763.aspx</link><pubDate>Tue, 19 Jan 2010 22:38:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50763</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50763.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50763</wfw:commentRss><description>&lt;p&gt;If you save your form as source files, you can open template.xml in a text editor&amp;nbsp;-- that gives you a pretty good idea of the XPath. Another way is to add an expression box to your template, just on the surface itself, not inside of any groups or sections, and select the field you need the XPath for as the XPath for the expression box. If you look in the expression box&amp;#39;s properties, you can see the XPath (or select Edit XPath in the &lt;strong&gt;&lt;em&gt;fx&lt;/em&gt;&lt;/strong&gt; formula editor).&lt;/p&gt;
&lt;p&gt;If you get stuck, post your template here, under the Options tab there is a spot to attach a file, so that someone can help you with your XPath.&lt;/p&gt;</description></item><item><title>Re: Create Outlook event using two different Time/Date fields</title><link>https://www.infopathdev.com:443/forums/thread/50750.aspx</link><pubDate>Tue, 19 Jan 2010 18:42:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50750</guid><dc:creator>Nate@GLRM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50750</wfw:commentRss><description>&lt;p&gt;I am using Infopath 2003, how do I figure out the XPath of a field?&lt;/p&gt;</description></item><item><title>Re: Create Outlook event using two different Time/Date fields</title><link>https://www.infopathdev.com:443/forums/thread/50677.aspx</link><pubDate>Sun, 17 Jan 2010 23:46:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50677</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50677</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll need to figure out the XPath to the date field in your form and replace the XPath in the below sample with that:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dim dateNode &lt;br /&gt;Set dateNode = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:dateField&amp;quot;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Will get you the xml node. Then, to get the text:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;dateNode.text&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So, you could modify what you have to look like:&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dim dateNode &lt;br /&gt;Set dateNode = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:dateField&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set objOutlook = CreateObject(&amp;quot;Outlook.Application&amp;quot;) &lt;br /&gt;Set itmAppt = objOutlook.CreateItem(1) &lt;br /&gt;&lt;br /&gt;itmAppt.Start = dateNode.text&lt;/p&gt;
&lt;p&gt;......&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You may want to add some error handling, make sure that there is a value in dateNode.text.If you are using separate fields for the time and date, you&amp;#39;ll need to get both values, make sure they aren&amp;#39;t blank, and concatenate them. Good luck, and holler if you get stuck.&lt;/p&gt;</description></item><item><title>Create Outlook event using two different Time/Date fields</title><link>https://www.infopathdev.com:443/forums/thread/50659.aspx</link><pubDate>Fri, 15 Jan 2010 20:15:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50659</guid><dc:creator>Nate@GLRM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50659.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50659</wfw:commentRss><description>&lt;p&gt;I have an Infopath form that I am using to create an Outlook calendar event amoung a couple other things.&amp;nbsp; I hard coded the dates for test purposes and it worked like a charm!&amp;nbsp; Now I have two fields (one for date and one for time) that I need to use to schedule an Outlook appointment.&amp;nbsp; I am not familiar with pulling fields from Infopath into a variable, so I may need some help with this.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using VBScript with the following code:&lt;/p&gt;
&lt;p&gt;Set objOutlook = CreateObject(&amp;quot;Outlook.Application&amp;quot;) &lt;br /&gt;Set itmAppt = objOutlook.CreateItem(1) &lt;br /&gt;&lt;br /&gt;itmAppt.Start = &amp;quot;1/15/10 3:30PM&amp;quot; &amp;#39;This needs to be assigned&amp;nbsp;to&amp;nbsp;the data the Time and Date fields in the&amp;nbsp;form&lt;br /&gt;itmAppt.Duration = 60 &lt;br /&gt;itmAppt.Subject = &amp;quot;Test Appointment&amp;quot; &lt;br /&gt;itmAppt.AllDayEvent = False &lt;br /&gt;itmAppt.ReminderSet = True &lt;br /&gt;itmAppt.ReminderMinutesBeforeStart = 60 &lt;br /&gt;itmAppt.Body = &amp;quot;Test Body&amp;quot; &lt;br /&gt;itmAppt.Save&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Any help will be much appreciated!&lt;/p&gt;</description></item></channel></rss>