<?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: How to format Numeric Values in Drop-Down List Box?</title><link>https://www.infopathdev.com:443/forums/thread/102093.aspx</link><pubDate>Fri, 10 Apr 2015 09:11:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102093</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102093.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102093</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here are some tricks that you can try in order to have your dropdown list box remain as a text field and&amp;nbsp;display numeric values as a whole number format:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Add a hidden calculated column value in your SharePoint list that removes the decimal places of your number column, thus coming up with a whole number equivalent of your actual number column. Add this in your data connection fields and point your dropdown list box entries to that new calculated column.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add a hidden helper column in your SharePoint list (maybe name it &amp;quot;Format Number&amp;quot;), add it in your data connection fields and then add a rule in that secondary data source field that sets your number field using your substring-before method. You&amp;#39;ll then add a rule that maybe fires on form load that sets the Format Number field to something like &amp;quot;1&amp;quot; just to trigger its rule.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Export your form&amp;#39;s source files and modify the view XSL so that the dropdown displays numeric values without the decimal stuff (also using substring-before).&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;If you need more details in doing any of the techniques above, please don&amp;#39;t hesitate to contact &lt;a href="mailto:Support@Qdabra.com"&gt;Support@Qdabra.com&lt;/a&gt; and we&amp;#39;d be happy to assist you.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>How to format Numeric Values in Drop-Down List Box?</title><link>https://www.infopathdev.com:443/forums/thread/102078.aspx</link><pubDate>Wed, 08 Apr 2015 20:09:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102078</guid><dc:creator>Gracie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=102078</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp; I am new to this forum, and have a question that I&amp;#39;m&amp;nbsp;hoping someone can answer.&amp;nbsp; I am working in&amp;nbsp;InfoPath 2010 with SharePoint 2007.&amp;nbsp; I have a drop-down list box that is populated with numeric values (integers) from a SharePoint list.&amp;nbsp; The drop-down list box is a text field.&amp;nbsp; I understand that the numeric values from SP come into InfoPath as numbers.&amp;nbsp; I need to format the values in the drop-down list&amp;nbsp;box to remove the decimal place and trailing zeroes.&amp;nbsp; I am able to do this for single text box fields using the substring-before function, but I can&amp;#39;t apply the function to all of the values in the drop-down list box.&amp;nbsp; I have tried changing the data type of the drop-down list box to a both Whole Number and Double Precision, but still can&amp;#39;t get formats to work.&amp;nbsp; Further, when I do change the data type and try to use the form, the field errors out.&amp;nbsp; Is there any way to format the numeric values in a drop-down list box that is data type Text?&amp;nbsp; Can I use some XPath code when I am setting the value of the field?&amp;nbsp; Thank you for any help!&lt;/p&gt;</description></item></channel></rss>