To Decimal, or not to Decimal... - InfoPath Dev
in

InfoPath Dev

To Decimal, or not to Decimal...

Last post 05-03-2005 06:05 AM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-27-2005 12:05 PM

    To Decimal, or not to Decimal...

    Hey all,

    Have another issue regarding data types and SQL server. I am getting validation errors when my XPATH expression is computed. I have a field called Price and a field called Discount, and one more called Total. In SQL they are all the Money data type. When I try and run the form and put in values, I get the errors as said above.

    I read the little tid-bit in Introducing Infopath 2003 on page 396 about "Fixing fractional value rounding errors" but i'm not really understanding it. It says "To fix the problem... change the Discount fields datatype to decimal (4,2) or Decimal (5,3) to permit values of 99.99 or 99.999". Where am I able to change this in Infopath? Since this is a database connection, the datatype is set to simpleType and is unchangable. I have also attempted to switch the dataype on the SQL server from Money to Decimal to no avail.

    Kinda confused here.
  • 05-03-2005 06:05 AM In reply to

    Re: To Decimal, or not to Decimal...

    Can you actually copy paste your "XPath" or the line of code that uses the xpath here.
    I think it has something to do with the code because usually you do not get validation errors when "XPath's" are executed. You get errors only when the xpath is wrong or the underlying code is wrong.

    Agni
    InfoPathDev India
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.