<?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: Creating a unique number from Initials Date and Time</title><link>https://www.infopathdev.com:443/forums/thread/61653.aspx</link><pubDate>Wed, 24 Nov 2010 12:45:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61653</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61653.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61653</wfw:commentRss><description>What is the type of your field? if it&amp;#39;s a date time it&amp;#39;s normal you have to set something like &amp;quot;YYYY:MM:DDTHH:MM&amp;quot;</description></item><item><title>Re: Creating a unique number from Initials Date and Time</title><link>https://www.infopathdev.com:443/forums/thread/61645.aspx</link><pubDate>Wed, 24 Nov 2010 05:46:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61645</guid><dc:creator>oliviar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61645.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61645</wfw:commentRss><description>&lt;p&gt;Thanks for all your help. I ended up getting this to work:&lt;/p&gt;
&lt;p&gt;concat(substring(NAME, 1, 1), substring(substring-after(NAME, &amp;quot; &amp;quot;), 1, 1), number(substring(DATE, 3, 1)), number(substring(DATE, 4, 1)), number(substring(DATE, 6, 2)), number(substring(DATE, 9, 2)), concat(substring(now(), 12, 2), substring(now(), 15, 2)))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And this is producing AXYYMMDDHHMM. &lt;/p&gt;
&lt;p&gt;However, even after everything is selected correctly and 100% filled in, the field still has those thick red lines around them. Why are they there? Any way to remove them?&lt;/p&gt;</description></item><item><title>Re: Creating a unique number from Initials Date and Time</title><link>https://www.infopathdev.com:443/forums/thread/61644.aspx</link><pubDate>Wed, 24 Nov 2010 03:20:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61644</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61644</wfw:commentRss><description>Hi, it&amp;#39;s easier if you have 2 fields one for the firstname and another for the last this formula is not full proof it only work for this pattern:&amp;quot;firstname lastname&amp;quot;
concat(substring(field1; 1; 1); substring(field1; string-length(substring-before(field1; &amp;quot; &amp;quot;)) + 2; 1); substring(now(); 3; 2); substring(now(); 6; 2); substring(now(); 9; 2); 
You have to replace field1 by your name field</description></item><item><title>Re: Creating a unique number from Initials Date and Time</title><link>https://www.infopathdev.com:443/forums/thread/61643.aspx</link><pubDate>Wed, 24 Nov 2010 02:14:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61643</guid><dc:creator>oliviar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61643.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61643</wfw:commentRss><description>&lt;p&gt;Solution so far:&lt;/p&gt;
&lt;p&gt;concat(number(substring(DATE, 3, 1)), number(substring(DATE, 4, 1)), number(substring(DATE, 6, 2)), number(substring(DATE, 9, 2)), concat(substring(now(), 12, 2), substring(now(), 15, 2)))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;That is returning the date (from a date picker) and the time(now) as YYMMDDHHMM&lt;/p&gt;
&lt;p&gt;The names are formated as &amp;quot;firstname lastname&amp;quot; in the NAME field.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was able to get the FIRST initial of the persons name (from the NAME field), using: substring(NAME, 1, 1)&lt;/p&gt;
&lt;p&gt;I assume I need to use substring after the space to get the first letter of the surname? However I have only been able to get the WHOLE last name from this. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Creating a unique number from Initials Date and Time</title><link>https://www.infopathdev.com:443/forums/thread/61642.aspx</link><pubDate>Wed, 24 Nov 2010 01:18:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61642</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61642.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61642</wfw:commentRss><description>&lt;p&gt;Hi oliviar, I help you on the second part of your form because I&amp;#39;m not certain on the format of your name field.&lt;/p&gt;
&lt;p&gt;For the pattern:YYMMDDHHMM, you can use:&lt;/p&gt;
&lt;p&gt;concat(substring(now(); 3; 2); substring(now(); 6; 2); substring(now(); 9; 2); substring(now(); 12; 2); substring(now(); 15; 2))&lt;/p&gt;</description></item><item><title>Re: Creating a unique number from Initials Date and Time</title><link>https://www.infopathdev.com:443/forums/thread/61641.aspx</link><pubDate>Wed, 24 Nov 2010 01:11:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61641</guid><dc:creator>oliviar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61641</wfw:commentRss><description>&lt;p&gt;Alright, I worked out a little bit of it myself:&lt;/p&gt;
&lt;p&gt;This is date in YYMMDD format: &lt;/p&gt;
&lt;p&gt;concat(number(substring(DATE, 3, 1)), number(substring(DATE, 4, 1)), number(substring(DATE, 6, 2)), number(substring(DATE, 9, 2)))&lt;/p&gt;
&lt;p&gt;But it will only work if the date comes from a date picker (called DATE in this case)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I please need help on the TIME (now) expressed as just HHMM and the initials&lt;/p&gt;</description></item><item><title>Creating a unique number from Initials Date and Time</title><link>https://www.infopathdev.com:443/forums/thread/61640.aspx</link><pubDate>Wed, 24 Nov 2010 00:57:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61640</guid><dc:creator>oliviar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61640.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=61640</wfw:commentRss><description>&lt;p&gt;I have been trying to construct a formula that take the initials of a persons name (from the &amp;#39;name&amp;#39; field) and the DATE expressed as YYMMDD and the TIME expressed as HHMM. And concatenated it looks like ABYYMMDDHHMM&lt;/p&gt;
&lt;p&gt;I keep ending up with a complete dog&amp;#39;s breakfast of either errors or &amp;#39;12-2812:33&amp;#39; or &amp;#39;198,456,44&amp;#39; and other things that look like that. &lt;/p&gt;
&lt;p&gt;Please help me construct this number&lt;/p&gt;</description></item></channel></rss>