Number Format and no "0"s - InfoPath Dev
in

InfoPath Dev

Number Format and no "0"s

Last post 06-06-2006 06:38 AM by ravenous. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-05-2006 07:53 PM

    Number Format and no "0"s

    Hello, I'm new to the forum as well as infopath. I having a problem and it was suggest that I try here to find my answer. The problem that I have is that I have a form (its actually the PO template) that gets data from various sharepoint lists, that include products and prices. The I run a calc to add up the fields and show the total. We have some users that need to view the forms but do not have infopath, so I followed the MS instructions to display in internet explorer and that worked great but the total values that display fine in infopath show up in IE with the "0"'s. So 51.00 shows up as 50 and 51.30 will show up as 51.3?!? Does any have any idea how to resolve this? Here is a code snippit from the view.xsl...

    <xsl:value-of select="po:order/po:actualTotal/my:textsubtotal"/>
    </xsl:attribute>
    <xsl:choose>
    <xsl:when test="function-available('xdFormatting:formatString')">
    <xsl:value-of
    select="xdFormatting:formatString(po:order/po:actualTotal/my:textsubtotal,&­quot;number","numDigits:2;negativeOrder:1;")"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="po:order/po:actualTotal/my:textsubtotal"/>

  • 06-06-2006 05:48 AM In reply to

    Re: Number Format and no &quot;0&quot;s

    Hi,

    Greg had answered this kind of Answered in MSDN.

    Please look at the link given below.


    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?&lang=en&cr=US&guid=&sloc=en-us&dg=microsoft.public.infopath&p=1&tid=fc25397c-c525-46d5-abf2-369d41678961&mid=2cec7238-abfc-466e-8558-6c3cb565cebd

    Hope this will help you.

    Thank You.
  • 06-06-2006 06:38 AM In reply to

    Re: Number Format and no &quot;0&quot;s

    Greg, had also suggested that I check here. Is anyone here familiar with how to change the number formatter for the view to an xslt number formatter?
    http://groups.google.com/group/microsoft.public.xml/browse_thread/thread/7980a660994fa210/a70abadcfc99e89e?lnk=st&q=phill2%40charter.net&rnum=2&hl=en#a70abadcfc99e89e
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.