<?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>Day of the year</title><link>https://www.infopathdev.com:443/forums/thread/65841.aspx</link><pubDate>Sun, 10 Apr 2011 11:58:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65841</guid><dc:creator>Marcel 2586</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65841</wfw:commentRss><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;Hello again,&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;I am busy with a new form, this is for my own InfoPath training skill.&lt;br /&gt;At work we have a excel work in progress list with hundreds of parts.&lt;br /&gt;Every part has its own unique order number given by SAP.&lt;br /&gt;The SAP data is then&amp;nbsp;imported by excel and you see a lot of information like:&lt;/span&gt; 
&lt;ul&gt;
&lt;li style="LINE-HEIGHT:normal;MARGIN:0in 0in 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list .5in;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;Time to go&lt;/span&gt;&lt;/li&gt;
&lt;li style="LINE-HEIGHT:normal;MARGIN:0in 0in 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list .5in;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;start date&lt;/span&gt;&lt;/li&gt;
&lt;li style="LINE-HEIGHT:normal;MARGIN:0in 0in 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list .5in;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;department codes&lt;/span&gt;&lt;/li&gt;
&lt;li style="LINE-HEIGHT:normal;MARGIN:0in 0in 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list .5in;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;skill codes&lt;/span&gt;&lt;/li&gt;
&lt;li style="LINE-HEIGHT:normal;MARGIN:0in 0in 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list .5in;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;given time to repair (let’s say turning and milling two hours)&lt;/span&gt;&lt;/li&gt;
&lt;li style="LINE-HEIGHT:normal;MARGIN:0in 0in 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list .5in;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;GE reference manual&lt;/span&gt;&lt;/li&gt;
&lt;li style="LINE-HEIGHT:normal;MARGIN:0in 0in 10pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list .5in;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;A&amp;nbsp;day number. this is a calculation from the start date plus&amp;nbsp;24 days, including the weekends. this is our repair window finish date.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Why do we use day numbers. A few years ago we had no structure. Everyone was doing their own job as best they could do and see fit. Resulting in the fun parts where done first and the complex parts had a repair time that exceeded the repair window with more than 45 days. Not so good for the company and angry customers. After a lean session we decided to go for day numbers. So every part has its own day number. You pick up the part with the lowest number, as simple as that.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;After importing this excel sheet into InfoPath I can scan or type or select the order number. Now in a repeating table you see all the excel info. Neatly in one clear view.&lt;br /&gt;What I like to do in InfoPath is look at a textbox with a value of Today (). I want to recalculate this to a number of the year (today is April 10, 2011 with the corresponding day number 100) &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;. So I can compare this to the given day number from SAP and calculate the priority of the part. And InfoPath will give a recommendation to do some overtime, after comparing skill cover. I know that this has some Big Brother issue but I do this just to learn more about InfoPath.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;What I really like to know is how to calculate the day of the year from a textbox today.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;A big thanks in advance.&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>