Hi,
Im relativly new to Infopath 2013 but Im very used to coding against databses, I have a wierd issue with my info path form. When it displays a number from the database it offsets the decimal by two, basically the value in the database 17499.00 is shown as 174,99 in the infopath form.
Im using the SQL Database to populate drop-down lists in the form and when a selection has been made the details (in this case price) is shown in a text field.
I have a Product table in the database that has the following columns:
- ID (bigint)
- Name (Varchar(50))
- Price (numeric(18,2)) - I have also tried the money datatype same result
I have saved the following values to this table
Something to mention is that I have SQL_Latin1_General_CP1_CI_AS on the SQL Database and SQL Server (However tried to create a new database with Swedish-Finnish_CI_AS but same result).
My computer has the Swedish region settings chosen and also under Infopath "Options" I have Swedish as default both for keyboard and language.
The field in Infopath is set to Decimal(Double) and it set to "Currency symbol" under "Format" with 2 decimal places and "Use a digit grouping symbol". However I have tried a couple of combinations here even tried setting the field as text it still shows this way.
I just cant for the life in me figure out why it would offset by two, only thing I can think of is that it see's the "." in the database as a thousand separator but then the value should not be displayed as 174,99.
Im completely stuck now as all my decimal values return is this fashion, Im sure its a collation issue but cant figure out why!
I would prefer not to have to re-install my SQL Server just to test if its the SQL Server collation that is messing things up.
One would think decimals would work between collations!
Im very greateful for any help on this issue.
Regards,
Claudio