<?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: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87353.aspx</link><pubDate>Sun, 24 Feb 2013 03:58:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87353</guid><dc:creator>moldar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87353</wfw:commentRss><description>&lt;p&gt;You are going to have to check to see if the point (.) exists in the string and then check out the length of what remains after the point. There is&amp;nbsp;no if..then..else method in XPath 1.0, but you might be able to use something like this&lt;/p&gt;
&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/971067/is-there-an-if-then-else-statement-in-xpath"&gt;http://stackoverflow.com/questions/971067/is-there-an-if-then-else-statement-in-xpath&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Check out the Becker method mentioned in this post.&lt;/p&gt;
&lt;p&gt;If it were me, I would probably calculate it with code on the on change event of the group.&lt;/p&gt;</description></item><item><title>Re: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87303.aspx</link><pubDate>Thu, 21 Feb 2013 10:22:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87303</guid><dc:creator>Tughsol</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87303</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;&lt;p&gt;Thanks for that. This works ok for a single value. I&amp;#39;m using multiple values from a Repeating Table so when I use the Concat function this doesn&amp;#39;t work. It then drops the 0 or .00 again.&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87225.aspx</link><pubDate>Tue, 19 Feb 2013 05:19:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87225</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87225</wfw:commentRss><description>&lt;p&gt;You could still store the value in a main data source field, I&amp;#39;m just suggesting you use an expression box to display the data.&lt;/p&gt;&lt;p&gt;I just tried this in a sample form, and the decimal displayed correctly in Filler - are you in Browser or Filler? What version? I&amp;#39;ve attached my sample here for you to try - save it locally, right click and select design to open and then you can preview &amp;amp; type a value in the text box to see how it is displayed in the expression box.&lt;/p&gt;</description></item><item><title>Re: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87197.aspx</link><pubDate>Mon, 18 Feb 2013 15:24:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87197</guid><dc:creator>Tughsol</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87197</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;&lt;p&gt;I have tried using an Expression Box and formatting it as a Decimal and set to 2 decimal places. It doesn&amp;#39;t seem to work though as it still drops the .00 when I tested it.&lt;/p&gt;&lt;p&gt;I would probably need it to be a Text Box rather than an Expression Box anyway though - as I need to pass the data through to the Library Column.&lt;/p&gt;&lt;p&gt;Any other ideas?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87118.aspx</link><pubDate>Fri, 15 Feb 2013 15:39:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87118</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87118.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87118</wfw:commentRss><description>I&amp;#39;m suggesting that you put a calculated value on your form and set it to display the value of OUTLAY_COMP. Then set the calculated value to display as decimal. Then set the format to display 2 decimal places.</description></item><item><title>Re: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87109.aspx</link><pubDate>Fri, 15 Feb 2013 11:10:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87109</guid><dc:creator>Tughsol</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87109</wfw:commentRss><description>&lt;p&gt;Hi Hilary. Thanks for getting back to me!&lt;/p&gt;&lt;p&gt;The field in the Repeating Table (OutlayCost) is set to a decimal data type but the field (OUTLAY_COMP) that is set to Concat the OutlayDescription, Currency and OutlayCost is a text field. This is because the OutlayDescription and Currency are text so a deciaml data type wouldn&amp;#39;t accept it.&lt;/p&gt;&lt;p&gt;I can change the Concat field (OUTLAY_COMP) to be a calculated value field but I&amp;#39;m not sure what the value should be then?&lt;/p&gt;&lt;p&gt;The 3 things to consider are whether it needs .00, 0 or as it is.&lt;/p&gt;&lt;p&gt;ie. If&amp;nbsp;OutlayCost = 50.00 then it will appear as 50 in the concat text field. We need to add .00 to this.&lt;/p&gt;&lt;p&gt;If OutlayCost = 50.10 then it will appear&amp;nbsp;as 50.1 in the concat text field.&amp;nbsp;We need to add 0 to the end.&lt;/p&gt;&lt;p&gt;If OutlayCost = 50.25 then it will appear as 50.25 in the concat text field. We dont need to add anything.&lt;/p&gt;&lt;p&gt;Does this make sense? Any idea how I could do this?&lt;/p&gt;&lt;p&gt;Many thanks for your help!&lt;/p&gt;</description></item><item><title>Re: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87073.aspx</link><pubDate>Thu, 14 Feb 2013 15:44:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87073</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87073</wfw:commentRss><description>&lt;p&gt;Can you set the field to a decimal data type so you can set the format on it? If not, can you use an expression box (calculated value) instead?&lt;/p&gt;</description></item><item><title>Re: Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/87068.aspx</link><pubDate>Thu, 14 Feb 2013 11:42:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87068</guid><dc:creator>Tughsol</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=87068</wfw:commentRss><description>Any ideas?</description></item><item><title>Convert Decimals to Text using Concat</title><link>https://www.infopathdev.com:443/forums/thread/86561.aspx</link><pubDate>Tue, 29 Jan 2013 16:31:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86561</guid><dc:creator>Tughsol</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86561.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86561</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Sorry if this has already been asked - I tried searching but couldn&amp;#39;t find a similar post.&lt;/p&gt;&lt;p&gt;I am using InfoPath 2010 to try and Concat fields from a Repeating Table into a single text box. The fields in the table are OutlayDescription, Currency and OutlayCost.&lt;/p&gt;&lt;p&gt;I then have&amp;nbsp;set the Value of the Concat field to :&lt;/p&gt;&lt;p&gt;eval(eval(Outlay_Details, &amp;#39;concat(my:OutlayDescription, &amp;quot; - &amp;quot;, my:Currency, my:OutlayCost, &amp;quot;&lt;br /&gt;&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The issue I have is that the OutlayCost Field in the Repeating table is a Decimal Value set to show 2 decimal places. When this is converted to the Text Field it then drops the two blank decimals.&lt;/p&gt;&lt;p&gt;ie. 50.00 in the Repeating Field becomes 50 in the Concat Field.&lt;/p&gt;&lt;p&gt;Any idea how I can set the value to format to 2 decimal place?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Tughsol&lt;/p&gt;</description></item></channel></rss>