<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83875.aspx</link><pubDate>Thu, 25 Oct 2012 15:37:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83875</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83875.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83875</wfw:commentRss><description>&lt;p&gt;When you say style sheets, what do you mean? XSL / XSLT? &lt;/p&gt;&lt;p&gt;Your InfoPath template is a collection of different files, including XSL files for the views. Under Publish, you have the option to export source files - do that, and you&amp;#39;ll be able to see the XSL for your different views - you can open them in a text editor or whatever and see what InfoPath is using for display - that may be helpful.&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83871.aspx</link><pubDate>Thu, 25 Oct 2012 13:37:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83871</guid><dc:creator>barichter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83871.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83871</wfw:commentRss><description>&lt;p&gt;By the way, do you know if there is any tool like Infopath for creating style sheets? I am creating spreadsheets and html pages to discplay my xml data but it is slow going, trial and error to get it to look right. A tool like infopath would be great.&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83867.aspx</link><pubDate>Thu, 25 Oct 2012 03:27:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83867</guid><dc:creator>barichter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83867.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83867</wfw:commentRss><description>&lt;p&gt;Wow, you have been so helpful. Thank you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yes, I did understand what you said, but when I said that I did not want to update the rates without having to change the form template, what I meant is that I didn&amp;#39;t want to have to open the Default Values and set them all by hand every time they changed.&lt;/p&gt;
&lt;p&gt;Depending on how I end up using this, I may or may not use an external xml file, but at least I now know how to use both. This is wonderful and you have helped immensly.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83864.aspx</link><pubDate>Thu, 25 Oct 2012 01:38:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83864</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83864</wfw:commentRss><description>&lt;p&gt;Attaching a revised version - I fixed up the formula on your rule to set &amp;quot;field2&amp;quot;. Since it was being set to a decimal, I changed its data type - you had it as a date?&lt;/p&gt;&lt;p&gt;I feel like I&amp;#39;m not explaining resource files well. Originally, you&amp;#39;d mentioned wanting to be able to update the rates w/out having to change the form template - this is why I was thinking you&amp;#39;d want to use an external XML data source (i.e., file on SharePoint). So, it sounds instead like you want the XML included with the template - that&amp;#39;s what you currently have, but you&amp;#39;ll have to update the template (and send it to people again) when you need to change the data in there (rate start &amp;amp; end, for example). I hope that makes sense.&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83863.aspx</link><pubDate>Thu, 25 Oct 2012 01:02:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83863</guid><dc:creator>barichter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83863.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83863</wfw:commentRss><description>&lt;p&gt;So, it says that &amp;quot;Connections to XML files on the local computer are supproted only in fully-trusted form templates.&amp;quot; That is just as well, since I want to mail this to people and don&amp;#39;t want to send the data file with it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, I updated the file, but it still does not work. When I export the file or save the form, the data all looks correct now, but it just wont show the rate.&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83852.aspx</link><pubDate>Wed, 24 Oct 2012 22:00:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83852</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83852</wfw:commentRss><description>&lt;p&gt;When you added the data connection to your XML file, the form probably asked if you wanted to include the XML as a resource for the form, or access it from its current location. Looking at your form, I can see you opted to import the XML. So, the form template itself now has a copy of that XML with its other files - on the data tab in the ribbon, select Resource Files (undert tools in IP 2007) and you can see the file there. Export it, and you&amp;#39;ll see it is your original file - with the data values formatted in a way that XML won&amp;#39;t recognize as dates.&lt;/p&gt;&lt;p&gt;You can walk through the data connection wizard again and select your XML file again - if it is not on a local network (i.e., it is on a SharePoint site or something) you should have an option to access the data from that location instead of including it with the template, which is, I think, what you want so that you don&amp;#39;t have to update the template every time the data changes.... does that make sense?&lt;/p&gt;&lt;p&gt;&lt;a href="http://office.microsoft.com/en-us/infopath-help/add-remove-or-update-resource-files-in-a-form-template-HA010073803.aspx"&gt;Here&lt;/a&gt; is some more information that may be helpful.&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83851.aspx</link><pubDate>Wed, 24 Oct 2012 21:45:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83851</guid><dc:creator>barichter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83851</wfw:commentRss><description>&lt;p&gt;Ok, I fixed the 2012-09-31 issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, the data types are set to Date.&lt;/p&gt;
&lt;p&gt;I am not sure how to answer your final question. I imported an external xml file into a resource file. I am not sure however I got the terminology correct so I attached my form. If you could look at it that would be great.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83848.aspx</link><pubDate>Wed, 24 Oct 2012 19:17:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83848</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83848</wfw:commentRss><description>&lt;p&gt;2012-09-31 isn&amp;#39;t a valid date - you&amp;#39;ll want to fix that.&lt;/p&gt;&lt;p&gt;In your form&amp;#39;s main data source, are my:start and my:end set to date data types?&lt;/p&gt;&lt;p&gt;Is your form using a resource file that is part of the form templates in the secondary data connection? If so, did you update it with your fixed XML? Or is the XML external to the form?&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83847.aspx</link><pubDate>Wed, 24 Oct 2012 19:10:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83847</guid><dc:creator>barichter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83847</wfw:commentRss><description>&lt;p&gt;Ok, I think I am almost there. At least it cant find errors in the formulas. However, it does not show rates. I &amp;quot;think&amp;quot; it has to do with the date format.&lt;/p&gt;
&lt;p&gt;Here is what I have in my resource.xml file that is used to populate the default values:&lt;/p&gt;
&lt;p&gt;&amp;lt;PerDiem&amp;gt;&lt;br /&gt;&amp;lt;Rate start=&amp;quot;2011-10-1&amp;quot; end=&amp;quot;2011-10-31&amp;quot;&amp;gt;248.60&amp;lt;/Rate&amp;gt;&lt;br /&gt;&amp;lt;Rate start=&amp;quot;2011-11-1&amp;quot; end=&amp;quot;2012-2-28&amp;quot;&amp;gt;201.30&amp;lt;/Rate&amp;gt;&lt;br /&gt;&amp;lt;Rate start=&amp;quot;2012-3-1&amp;quot; end=&amp;quot;2012-6-30&amp;quot;&amp;gt;246.00&amp;lt;/Rate&amp;gt;&lt;br /&gt;&amp;lt;Rate start=&amp;quot;2012-7-1&amp;quot; end=&amp;quot;2012-8-31&amp;quot;&amp;gt;185.90&amp;lt;/Rate&amp;gt;&lt;br /&gt;&amp;lt;Rate start=&amp;quot;2012-9-1&amp;quot; end=&amp;quot;2012-9-31&amp;quot;&amp;gt;248.60&amp;lt;/Rate&amp;gt;&lt;br /&gt;&amp;lt;MealStart&amp;gt;53.25&amp;lt;/MealStart&amp;gt;&lt;br /&gt;&amp;lt;MealDuring&amp;gt;71.00&amp;lt;/MealDuring&amp;gt;&lt;br /&gt;&amp;lt;/PerDiem&amp;gt;&lt;/p&gt;
&lt;p&gt;The dates look good to me. However, when I run the form and save it, it comes out like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;my:PerDiem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;my:MealStart&amp;gt;53.25&amp;lt;/my:MealStart&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;my:MealDuring&amp;gt;71.00&amp;lt;/my:MealDuring&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:rate&amp;gt;248.60&amp;lt;/my:rate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:start&amp;gt;10/1/2011&amp;lt;/my:start&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:end&amp;gt;10/31/2011&amp;lt;/my:end&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:reset&amp;gt;&amp;lt;/my:reset&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:rate&amp;gt;201.30&amp;lt;/my:rate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:start&amp;gt;11/1/2011&amp;lt;/my:start&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:end&amp;gt;2/28/2012&amp;lt;/my:end&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:reset&amp;gt;&amp;lt;/my:reset&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:rate&amp;gt;246.00&amp;lt;/my:rate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:start&amp;gt;3/1/2012&amp;lt;/my:start&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:end&amp;gt;6/30/2012&amp;lt;/my:end&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:reset&amp;gt;&amp;lt;/my:reset&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:rate&amp;gt;185.90&amp;lt;/my:rate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:start&amp;gt;7/1/2012&amp;lt;/my:start&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:end&amp;gt;8/31/2012&amp;lt;/my:end&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:reset&amp;gt;&amp;lt;/my:reset&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:rate&amp;gt;248.60&amp;lt;/my:rate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:start&amp;gt;9/1/2012&amp;lt;/my:start&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:end&amp;gt;9/31/2012&amp;lt;/my:end&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;my:reset&amp;gt;&amp;lt;/my:reset&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/my:Lodging&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/my:PerDiem&amp;gt;&lt;/p&gt;
&lt;p&gt;I cant find where it is changing the date. I have set the data type to Date everywhere I can think of.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83827.aspx</link><pubDate>Wed, 24 Oct 2012 15:15:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83827</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83827</wfw:commentRss><description>&lt;p&gt;Hi - I updated the sample form to show this. I changed the fields to a date datatype, and changed the format of the original data so it was correct for XML dates (yyyy-MM-dd).The rule is on field1 &amp;amp; sets field2 to the rate. It was a little counter-intuitive for me - we want the row where the start date is less than the selected date and the end date is greater than the selected date - I kept getting the greater than / lesser than wrong and had to use some conditional formatting on the table to straighten out my thinking. :)&lt;/p&gt;</description></item><item><title>Iterate resource file and select a node if it falls between two dates</title><link>https://www.infopathdev.com:443/forums/thread/83807.aspx</link><pubDate>Wed, 24 Oct 2012 03:56:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83807</guid><dc:creator>barichter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83807.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83807</wfw:commentRss><description>&lt;p&gt;I have imported a resource file and have set a bunch of default values that have rates and when they begin and when they end.&lt;/p&gt;
&lt;p&gt;In my form, I need to pick a date, and I would like to run through my default values and choose a rate if my date falls between the start and end dates.&lt;/p&gt;
&lt;p&gt;For example, I could choose 10/15/2012. So it looks at the list and it finds a node that has a start date of 10/1/2012 and an end date of 10/31/2012 with a rate of $200.&lt;/p&gt;
&lt;p&gt;So it would populate the control with $200.&lt;/p&gt;
&lt;p&gt;Does that make sense?&lt;/p&gt;
&lt;p&gt;Any help is appreciated. Actually, if you can just point me to the correct documentaiton that would be great.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>