Numeric field in a SharePoint List being brought back with decimals - InfoPath Dev
in

InfoPath Dev

Numeric field in a SharePoint List being brought back with decimals

Last post 05-29-2013 02:47 AM by cheason. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-28-2013 07:55 AM

    Numeric field in a SharePoint List being brought back with decimals

     This is really probably a daft question, but why would a numeric field with no decimal places in a SharePoint list (read from data connection) import into a form with many numerical places?

     So this in the list : 4

     Becomes this in InfoPath 2007 : 4.00000000000000

     In infopath the field is simply a text field, which is fine as I'm concatenating it with other information.

     Bizarre weirdness going on somewhere....

  • 05-28-2013 08:30 AM In reply to

    Re: Numeric field in a SharePoint List being brought back with decimals

    Actually, SharePoint stores the data as a decimal type. There are display options in a view to allow you to not display the decimals, but they are there.... And InfoPath is just brining back the data.

    So - generally, if the decimals are making a mess for me, I use substring-before to get rid of everything before the "." if I am using the data to set another field's value....

    Hilary Stoupa

  • 05-29-2013 02:47 AM In reply to

    Re: Numeric field in a SharePoint List being brought back with decimals

    Hilary,

     Many thanks - I've used substring before, but I'm not actively creating forms every hour of the given day to remember all the permutations possible in InfoPath - so thanks for refreshing mind - an explanation to my old age maybe?! ;o)

    Jason.

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