<?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: Infopath 2007 text box do not take numeric format</title><link>https://www.infopathdev.com:443/forums/thread/63394.aspx</link><pubDate>Fri, 21 Jan 2011 01:10:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63394</guid><dc:creator>andresmherrera</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63394</wfw:commentRss><description>Hey Hilary,

Thank you for response. Your solution works fine, decimal places and format.

Thanks a lot.</description></item><item><title>Re: Infopath 2007 text box do not take numeric format</title><link>https://www.infopathdev.com:443/forums/thread/63392.aspx</link><pubDate>Fri, 21 Jan 2011 00:00:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63392</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63392</wfw:commentRss><description>&lt;p&gt;Hey, Andres, welcome.&lt;/p&gt;
&lt;p&gt;How odd that the format text box is disabled.&lt;/p&gt;
&lt;p&gt;When I look at the XSL for a form that has a control with the format defined, the format is in two places. In the when test (as shown in your post) but also in the xd:datafmt attribute of the span tag for the control. The quotes are encoded (&amp;amp;quot;).&lt;/p&gt;
&lt;p&gt;So, in my sample, which is formatted a bit differently than yours, prior to the xsl:when, I have this:&lt;/p&gt;
&lt;p&gt;&amp;lt;span hideFocus=&amp;quot;1&amp;quot; class=&amp;quot;xdTextBox xdBehavior_Formatting&amp;quot; title=&amp;quot;&amp;quot; contentEditable=&amp;quot;true&amp;quot; tabIndex=&amp;quot;0&amp;quot; xd:CtrlId=&amp;quot;CTRL2&amp;quot; xd:xctname=&amp;quot;PlainText&amp;quot; xd:binding=&amp;quot;@type&amp;quot; &lt;strong&gt;xd:datafmt=&amp;quot;&amp;amp;quot;number&amp;amp;quot;,&amp;amp;quot;numDigits:0;negativeOrder:1;&amp;amp;quot;&amp;quot;&lt;/strong&gt; xd:boundProp=&amp;quot;xd:num&amp;quot; style=&amp;quot;WIDTH: 130px&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;I wonder if you also need to adjust the number format there?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Infopath 2007 text box do not take numeric format</title><link>https://www.infopathdev.com:443/forums/thread/63391.aspx</link><pubDate>Thu, 20 Jan 2011 23:09:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63391</guid><dc:creator>andresmherrera</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63391</wfw:commentRss><description>Hi all,
I&amp;#39;m working with InfoPath 2007 (no-code) form which has couple a text boxes where the user type numbers. I tried to set number format  but the format button on text box&amp;#39;s window property is disable, I don not why.&lt;br /&gt;

Then I saved form using infopaht option &amp;quot;Save as sources files&amp;quot; and I tried to edit view1.xsl to set format like this:&lt;br /&gt;&lt;br /&gt;

&amp;lt;xsl:when test=&amp;quot;function-available(&amp;#39;xdFormatting:formatString&amp;#39;)&amp;quot;&amp;gt;
&amp;lt;xsl:value-of select=&amp;quot;xdFormatting:formatString(ValorCompensacion,&amp;quot;number&amp;quot;,&amp;quot;numDigits:2;negativeOrder:1;&amp;quot;)&amp;quot;/&amp;gt;
&amp;lt;/xsl:when&amp;gt;&lt;br /&gt;&lt;br /&gt;

Really I only changed numDigits:4 to numDigits:2.&lt;br /&gt;

When running the infopath form in browser and type 12345,6 the number looks like 12345,6000 (4 decimal digits) even after view1.xsl file change. If the user type 12345,6 I hope looks like 12.345,60. In same server exists others infopath 2007 form that work fine.&lt;br /&gt;


Can someone help me?&lt;br /&gt;

I&amp;#39;m not a great English writer, sorry if there are mistakes.</description></item></channel></rss>