<?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: Concatenation using an active directory (id) field, current user and autonumbering</title><link>https://www.infopathdev.com:443/forums/thread/67013.aspx</link><pubDate>Wed, 01 Jun 2011 12:52:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67013</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67013.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67013</wfw:commentRss><description>&lt;p&gt;Date fields in Infopath forms store their text as YYYY-MM-DD so you can use substring function to strip the first 4 characters.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;As for the incrementing id to represent the count of previous appeals, unless you have a way of retrieving previous tally submissions made via the form (maybe via a secondary data connect? are you using SQL server?) the form has no way of knowing this figure and can&amp;#39;t increment it accordingly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If all the appeals are stored via the form and every appeal is appended to a pre-existing form with the appeal data in it (ie you have a repeating group structure) then you could use the count function on the group each time a new repeating section is added.&lt;/p&gt;</description></item><item><title>Concatenation using an active directory (id) field, current user and autonumbering</title><link>https://www.infopathdev.com:443/forums/thread/66807.aspx</link><pubDate>Wed, 25 May 2011 17:13:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66807</guid><dc:creator>dinakaye</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66807.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66807</wfw:commentRss><description>&lt;p&gt;I need help&amp;nbsp;creating a unique&amp;nbsp;concatenated ID&amp;nbsp;field&amp;nbsp;for a grievance application. HR&amp;nbsp;policy&amp;nbsp;only allows an employee 2 appeals in a year, but they still want to capture all applications submitted. I want to keep track of the number of appeals each employee submits in a given year over the lifetime of the employees employment.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;My desired concatenation to use as the form ID would be &lt;strong&gt;employeeID-YEAR-##&amp;nbsp; &lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;concat(TXTempCDSID,&amp;quot;-&amp;quot;, TXTappDATE,&amp;quot;-&amp;quot;, strFilename)&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;How&amp;nbsp;can pull theyear &lt;strong&gt;[YYYY]&amp;nbsp;&lt;/strong&gt;from the TXTappDATE field&amp;nbsp;and then autonumber with a whole number? &lt;/p&gt;
&lt;p&gt;Every employee has a unique employeeID, the appeal application&amp;nbsp;ID field&amp;nbsp;should show HR&amp;nbsp;the exact number of&amp;nbsp;grievances (eligible or not) an employee submits whether they are eligible or not.&lt;/p&gt;</description></item></channel></rss>