<?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: drop down list contains decimal data types retreived from SharePoint List - too many decimal places</title><link>https://www.infopathdev.com:443/forums/thread/71553.aspx</link><pubDate>Mon, 31 Oct 2011 17:45:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71553</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71553.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71553</wfw:commentRss><description>&lt;p&gt;Thanks for the feedback. I tryed this but it&amp;#39;s not working.&amp;nbsp; I am probably setting it up wrong.&amp;nbsp; It had the effect of temporarily displaying a no decimal place number but it displayed the new value in addtion to the existing list, not in place of it and then it when away when another selection is made...&lt;/p&gt;&lt;p&gt;FYI when a selection is made from &lt;strong&gt;currencyField&lt;/strong&gt; (the dropdown control), it&amp;#39;s value is auto-filled in another field and&amp;nbsp;other fields are also&amp;nbsp;auto-filled.&lt;strong&gt;&amp;nbsp;&lt;/strong&gt; The auto-filled fields display properly with the desired&amp;nbsp;two decimal places.&amp;nbsp;&amp;nbsp;&lt;strong&gt;currencyField&lt;/strong&gt; reads from SharePoint list that&amp;nbsp;also display it&amp;#39;s values with only 2&amp;nbsp;decimal places in the list.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Per your advice I added a rule to &lt;strong&gt;currencyField &lt;/strong&gt;control&amp;nbsp;to set another field called&lt;strong&gt;&amp;nbsp;extraField&lt;/strong&gt;, to 99999.99999.&amp;nbsp;&lt;em&gt; &lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Action:&lt;/strong&gt;&lt;em&gt; set field &lt;strong&gt;extraField&lt;/strong&gt; to 99999.99999&lt;/em&gt;&lt;/p&gt;&lt;p&gt;on extraField control, I added a rule as follows:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Condition:&lt;/strong&gt; &lt;em&gt;if&amp;nbsp;&lt;strong&gt;currencyField&lt;/strong&gt; is not blank,&lt;/em&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Action:&lt;/strong&gt;&lt;em&gt; set field &lt;strong&gt;extraField&lt;/strong&gt; to round(currencyField&amp;nbsp;* 100) /100&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Re: drop down list contains decimal data types retreived from SharePoint List - too many decimal places</title><link>https://www.infopathdev.com:443/forums/thread/71508.aspx</link><pubDate>Fri, 28 Oct 2011 23:10:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71508</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71508.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71508</wfw:commentRss><description>&lt;p&gt;One way to change a value in every row of a repeating group is to identify some field that you&amp;#39;re not going to use, and after you query the data source, have a rule that sets that field to some improbable value, like 9898989898989.&amp;nbsp; Then put&amp;nbsp;any rules you want on that field to change the values of other fields in that repeating group.&amp;nbsp; In this case you would add a rule to set your currency field to &lt;strong&gt;round(&lt;u&gt;currencyField&lt;/u&gt; * 100) div 100&lt;/strong&gt;.&amp;nbsp; That will update the values in each row accordingly.&lt;/p&gt;
&lt;p&gt;Makes sense?&lt;/p&gt;</description></item><item><title>drop down list contains decimal data types retreived from SharePoint List - too many decimal places</title><link>https://www.infopathdev.com:443/forums/thread/71505.aspx</link><pubDate>Fri, 28 Oct 2011 21:56:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71505</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=71505</wfw:commentRss><description>&lt;p&gt;I have a form (IP 2007) that retrieves currency values from&amp;nbsp;a SharePoint 2007 list.&amp;nbsp; The columns in SharePoint are set as currency data type with 2 decimal places.&amp;nbsp;&amp;nbsp;I am using a&amp;nbsp;drop down control to retrieve the currency value but&amp;nbsp;the number displays14 decimal places and I only want 2.&amp;nbsp; How do I control the decimal places in a drop down list?&amp;nbsp; There is no function in a drop down control so that I can control this.&amp;nbsp; Should and can I do this through C# code behind?&amp;nbsp; If so how?&lt;/p&gt;</description></item></channel></rss>