<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Beginner's concatenation + field populate</title><link>https://www.infopathdev.com:443/forums/thread/77428.aspx</link><pubDate>Wed, 11 Apr 2012 08:46:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77428</guid><dc:creator>joemacangel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=77428</wfw:commentRss><description>&lt;p&gt;Thanks for the help guys, this is great info. &lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to start another thread now.&amp;nbsp; I&amp;#39;ve got a different question...&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;</description></item><item><title>Re: Beginner's concatenation + field populate</title><link>https://www.infopathdev.com:443/forums/thread/77380.aspx</link><pubDate>Tue, 10 Apr 2012 16:36:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77380</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77380.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=77380</wfw:commentRss><description>&lt;p&gt;You could use today() + translate to remove the &amp;quot;-&amp;quot; chars.&lt;/p&gt;
&lt;p&gt;concat(SERVICE, LASTNAME, LAST4SSN, translate(today(), &amp;quot;-&amp;quot;, &amp;quot;&amp;quot;))&lt;/p&gt;</description></item><item><title>Re: Beginner's concatenation + field populate</title><link>https://www.infopathdev.com:443/forums/thread/77378.aspx</link><pubDate>Tue, 10 Apr 2012 16:34:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77378</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77378.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=77378</wfw:commentRss><description>&lt;p&gt;Formatting dates inside formulas is a little tricky.&amp;nbsp; There are a few options you can take:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;msxsl:format-date() will work, but only in filler forms&lt;/li&gt;&lt;li&gt;You can parse the date out yourself using string functions.&amp;nbsp; Since your date format looks pretty simple, this is quite possible to do in formulas.&lt;/li&gt;&lt;li&gt;qRules offers a format date function that you can use without writing custom code: &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;http://www.qdabra.com/en/products/qRules_new.aspx&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Hope one of those options will work for you!&lt;/p&gt;</description></item><item><title>Re: Beginner's concatenation + field populate</title><link>https://www.infopathdev.com:443/forums/thread/77373.aspx</link><pubDate>Tue, 10 Apr 2012 16:05:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77373</guid><dc:creator>joemacangel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77373.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=77373</wfw:commentRss><description>&lt;p&gt;Wow, thanks again for the insight!&lt;/p&gt;
&lt;p&gt;A default value worked quite well.&amp;nbsp; I&amp;#39;d like to do a little bit more with the concat() statement though.&amp;nbsp; How about adding a datestamp to it?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Right now on the &amp;quot;LEAVE CONTROL NUMBER&amp;quot; fieldI have a default value of &lt;/p&gt;
&lt;p&gt;concat(SERVICE, LASTNAME, LAST4SSN)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;And it populates itself as each of those fields get info entered in.&amp;nbsp; Any idea on how to get a datestamp appended on the end?&amp;nbsp; Timestamp is a bit too much, but today() would be good if i could format it something like 20120410.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Trying to get the Leave Control Number to say something like USAFSMITH123420100410.&amp;nbsp; That would be perfect.&lt;/p&gt;</description></item><item><title>Re: Beginner's concatenation + field populate</title><link>https://www.infopathdev.com:443/forums/thread/77359.aspx</link><pubDate>Tue, 10 Apr 2012 15:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77359</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=77359</wfw:commentRss><description>&lt;p&gt;Hi there, and thanks for the great comments!&lt;/p&gt;&lt;p&gt;Action rules will trigger typically on two types of events: button clicks and field changes.&amp;nbsp; So if neither of those two things are happening, the rule won&amp;#39;t run even if its already in the state where [field] isn&amp;#39;t empty.&amp;nbsp; I&amp;#39;m not exactly sure what your scenario is, but perhaps you can try just setting a default value on the field you are trying to set?&amp;nbsp;&amp;nbsp; Maybe there is a different way you can write the rule so that it triggers properly.&amp;nbsp; Perhaps if you explain a little more what you are trying to do I can help with how to build your rule.&lt;/p&gt;</description></item><item><title>Re: Beginner's concatenation + field populate</title><link>https://www.infopathdev.com:443/forums/thread/77358.aspx</link><pubDate>Tue, 10 Apr 2012 15:38:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77358</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=77358</wfw:commentRss><description>&lt;p&gt;Hi, and welcome.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I struggled with when I started with InfoPath - rules only execute when the field they are set on &lt;strong&gt;&lt;em&gt;changes&lt;/em&gt;&lt;/strong&gt;. So, let&amp;#39;s say you have a rule set on fieldA, and it is meant to set fieldB - the rule only runs when fieldA&amp;#39;s value changes.&lt;/p&gt;
&lt;p&gt;Default values, on the other hand, update on their own, using whatever the current value of the fields used in the formula are - at least as long as the checkbox in the field&amp;#39;s properties that says something about updating if fields changed is selected.&lt;/p&gt;
&lt;p&gt;So, more directly, to your problem- I&amp;#39;m confused by this &amp;quot;...once the required fields are empty the control number should populate&amp;quot; - seems to me you&amp;#39;d want the required fields to have values to populate the control number. &lt;/p&gt;
&lt;p&gt;It seems in this case a default value may be more appropriate than a rule - in the data source task pane, you can right click your control number field, and in the properties dialog, you can use a formula (click the &lt;strong&gt;&lt;em&gt;fx&lt;/em&gt;&lt;/strong&gt; button) and create your concat statement.&lt;/p&gt;
&lt;p&gt;Does that make sense? Let me know if you need more info, and thank you for your service.&lt;/p&gt;</description></item><item><title>Beginner's concatenation + field populate</title><link>https://www.infopathdev.com:443/forums/thread/77345.aspx</link><pubDate>Tue, 10 Apr 2012 13:39:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77345</guid><dc:creator>joemacangel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77345.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=77345</wfw:commentRss><description>&lt;p&gt;First, let me thank you for an awesome community.&amp;nbsp; You guys can seriously do some infopath ninjutsu, so for the remainder of my deployment I&amp;#39;m going to be visiting you guys daily.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m an Air Force programmer, but I haven&amp;#39;t had the opportunity to use sharepoint much, that&amp;#39;s a different career field most of the time. However, with deployments you kinda do whatever is needed, and they needed a sharepoint genius...I&amp;#39;ll get there slowly, hopefully.&lt;/p&gt;
&lt;p&gt;First question of the day is if I have a control number I&amp;#39;d like to add to the form, basically a concatenation of last name, first name, last 4 social security number, and nothing I&amp;#39;m trying is populating a field with that number.&amp;nbsp; I&amp;#39;m getting the hang of rules and stuff like that in infopath, but I cannot get the field to populate.&amp;nbsp; Am I missing something?&amp;nbsp; My current rules are pretty simple things, &amp;quot;If [field] isn&amp;#39;t empty (I hate negative logic, but infopath doesn&amp;#39;t give me much to work with in that regard),&amp;nbsp;so once the required fields are empty the control number should populate, right?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sure I&amp;#39;m missing something.&amp;nbsp; Can anyone shine a light?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;</description></item></channel></rss>