<?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: Calculated Field to display Text and Dollar Amounts</title><link>https://www.infopathdev.com:443/forums/thread/107019.aspx</link><pubDate>Tue, 14 Jun 2016 16:44:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107019</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=107019</wfw:commentRss><description>I am kinda lazy. I&amp;#39;d use two expression boxes for this - one that shows all of the text up to the $ sign, then another that is just the Dev_Cost field, formatted as currency &amp;amp; set to display two decimal places.</description></item><item><title>Calculated Field to display Text and Dollar Amounts</title><link>https://www.infopathdev.com:443/forums/thread/106920.aspx</link><pubDate>Tue, 07 Jun 2016 18:48:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106920</guid><dc:creator>tdorsi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106920</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello, &lt;/p&gt;&lt;p&gt;First off this forum has been a tremendous help. I am very new to InfoPath and learning on the fly so to speak :P &lt;/p&gt;&lt;p&gt;I am running into an issue when attempting display a Message to the user in the form. I have created a Calculated Text Field on the form that will display the following message:&lt;/p&gt;&lt;p&gt;The Time spent to correct this issue was 2 hours and 15 minutes. For an estimated cost of $45.90 &lt;/p&gt;&lt;p&gt;I am using the Concat Function &lt;/p&gt;&lt;p&gt;I am getting the values for this expression from 3 fields: [DevHours] , [DevMinutes] and Dev_Cost&lt;/p&gt;&lt;p&gt;The first two fields are displaying fine the last field [Dev_Cost] which is a Number field set by a form rule Displays in the message as 45.900000000000000000001 &lt;/p&gt;&lt;p&gt;I figured out how to Round the Cost but I was asked to diplay the actual amount with the 2 decimal places. &lt;/p&gt;&lt;p&gt;I found the following post&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/jimmy/archive/2012/08/10/xpath-tips-and-tricks-rounding-numbers-to-the-nearest-n.aspx"&gt;http://www.infopathdev.com/blogs/jimmy/archive/2012/08/10/xpath-tips-and-tricks-rounding-numbers-to-the-nearest-n.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Which is a big help but I am still running into an error. &lt;/p&gt;&lt;p&gt;Here is my current formula&lt;/p&gt;&lt;p&gt;concat(&amp;quot;Total time spent to correct this issue was &amp;quot;, DevHours, &amp;quot; hours and &amp;quot;, string(DevMinutes), &amp;quot; minutes. For an Estimated cost of $&amp;quot;, round(Dev_Cost)*100/100)&lt;/p&gt;&lt;p&gt;Here is the return code error:&lt;/p&gt;&lt;p&gt;The expression is not a node-set.&lt;br /&gt;concat(&amp;quot;Total time spent to correct this issue was &amp;quot;, dfs:dataFields/my:SharePointListItem_RW/my:DevHours, &amp;quot; hours and &amp;quot;, string(dfs:dataFields/my:SharePointListItem_RW/my:DevMinutes), &amp;quot; minutes. For an Estimated cost of $&amp;quot;, round(dfs:dataFields/my:SharePointListItem_RW/my:Dev_Cost)*--&amp;gt;100&amp;lt;--/100)&lt;/p&gt;&lt;p&gt;Any and all assistance and guidance is greatly appreciated&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>