<?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: display a different value from a control</title><link>https://www.infopathdev.com:443/forums/thread/65791.aspx</link><pubDate>Fri, 08 Apr 2011 04:08:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65791</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65791</wfw:commentRss><description>&lt;p&gt;Just add another field that is text and that gets set automatically when your calculated value changes. Use the xpath substring and concat functions to set the new text value to everything to the left of the decimal point followed by just two characters to the right. Drag this field to the view and make it read-only. Add conditional formatting so that the other field doesn&amp;#39;t show after the text one is set. Conditional formatting also to hide the text field until the calculated value is selected. Anyway, that&amp;#39;s the general idea. Lots of options here. &lt;/p&gt;</description></item><item><title>display a different value from a control</title><link>https://www.infopathdev.com:443/forums/thread/65790.aspx</link><pubDate>Thu, 07 Apr 2011 23:33:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65790</guid><dc:creator>thoness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65790.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=65790</wfw:commentRss><description>&lt;p&gt;I have several controls that needs to be calculated to 6 decimal places.&amp;nbsp; The user only wants to see 2 decimal places when printing or viewing. What is the best way to do this?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I was thinking of doing separate views but the formatting stays the same for all controls.&amp;nbsp; The other option I thought of was to use a control with formatting for the 2 decimal with a value of the 6 decimal control.&amp;nbsp;Then use a different view to show only the fields with 2 decimal controls in place of the 6 decimal control?&amp;nbsp; That way the calculations are accurate to 6 digits but display only 2?&amp;nbsp; Is there a better idea?&lt;/p&gt;</description></item></channel></rss>