<?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: Sequential Numbering based on list values</title><link>https://www.infopathdev.com:443/forums/thread/72223.aspx</link><pubDate>Mon, 21 Nov 2011 14:22:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72223</guid><dc:creator>cory_booth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72223.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72223</wfw:commentRss><description>&lt;p&gt;Thanks for the reply...&lt;/p&gt;
&lt;p&gt;Yes, that&amp;#39;s about what I wound up doing.&amp;nbsp; I saved the year, julian date and the sequential numbers to custom columns.&amp;nbsp; I then did a data source receive connection to these columns.&lt;/p&gt;
&lt;p&gt;In my form, I read into a temp field, a filtered on julian date/year return of the sequential number - if null = 0&lt;/p&gt;
&lt;p&gt;I then add +1 to the returned value and begin my routine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;For the record, to compute the julian date (which is different than the julian day)....&lt;br /&gt;I used the julian day formula posted here: &lt;a href="http://www.infopathdev.com/forums/t/16958.aspx"&gt;http://www.infopathdev.com/forums/t/16958.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This returns an julian day number (like 26343) or so...&lt;/p&gt;
&lt;p&gt;I needed the julian date which is the numerical number of the day of the year.&lt;/p&gt;
&lt;p&gt;So...&amp;nbsp; using the formula above, I get the julain day for today.&lt;br /&gt;I then compute the value for a manually created date &amp;quot;01/01/2011&amp;quot;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Subtracting the difference between the two gives me the actual day of the year.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;----------------------------&lt;/p&gt;
&lt;p&gt;In the military, the julian date is a fundemental portion of an ordering number string in various automated logisitical systems.&lt;/p&gt;</description></item><item><title>Re: Sequential Numbering based on list values</title><link>https://www.infopathdev.com:443/forums/thread/72197.aspx</link><pubDate>Fri, 18 Nov 2011 16:39:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72197</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72197</wfw:commentRss><description>&lt;p&gt;You can use rules to do this.&lt;/p&gt;
&lt;p&gt;I would recommend 2 rules:&lt;br /&gt;1st:&amp;nbsp;Query your list to make sure your have every new change to it (this can take a while if the list is long, but can be taken out but making sure you can&amp;#39;t click the button twice)&lt;br /&gt;2nd: Set some fields value to Formula( max(&amp;nbsp; &amp;lt;list from above&amp;gt;[number appended to julian date field contains today&amp;#39;s julian date]) +1 )&lt;/p&gt;
&lt;p&gt;This sounds complicated since I didn&amp;#39;t use field names, buts its really not, all it does it looks at your list and counts how many items have today&amp;#39;s date in them and adds one to it.&lt;br /&gt;So if there are no items in the list, this item is the first, if there are three, this item is the fourth.&lt;/p&gt;
&lt;p&gt;You may have some problems getting the julian date in IP.&lt;/p&gt;
&lt;p&gt;May I ask why are you using the julian date?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could also use a second field that was just a date and have the formula check to see if that date matches today&amp;#39;s date.&lt;/p&gt;</description></item><item><title>Sequential Numbering based on list values</title><link>https://www.infopathdev.com:443/forums/thread/72094.aspx</link><pubDate>Tue, 15 Nov 2011 19:45:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72094</guid><dc:creator>cory_booth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72094</wfw:commentRss><description>&lt;p&gt;I have a requirement to number items placed on order.&lt;/p&gt;
&lt;p&gt;These numbers roll into an actual tracking code.&lt;/p&gt;
&lt;p&gt;The items on order come from an InfoPath repeating table.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;----------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is the difficult part.&lt;/p&gt;
&lt;p&gt;The numbers are sequentially added through the business day.&lt;/p&gt;
&lt;p&gt;So if I have an infopath form with two items submitted, I would have 1 and 2&lt;/p&gt;
&lt;p&gt;If another form is submited with three items (on the same day), I would have 3, 4, and 5&lt;/p&gt;
&lt;p&gt;and so on...&lt;/p&gt;
&lt;p&gt;The numbers are then appended to a Jullian Date (which I have already calculated).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;------------&lt;/p&gt;
&lt;p&gt;The next day, the numbering starts over...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a button which saves the repeating table contents to a sharepoint list via C#&lt;/p&gt;
&lt;p&gt;The problem is, I am not sure how to tackle numbering the items for order.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would have to check the list for any prior orders for the current day and begin numbering from that point forward...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyone have any ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>