Validation error raised on post back! - InfoPath Dev
in

InfoPath Dev

Validation error raised on post back!

Last post 08-21-2012 02:10 AM by Gennady Vanin (Геннадий Ванин, Новосибирск). 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-20-2012 05:36 AM

    Validation error raised on post back!

     

    Hi, I am working on a form including three fields: Weight, Price and value. ( All decimals)If price is entered then value is calculated and if value is entered then price is calculated.I implemented the calculations by rules (Not code behind and not as the default value formula as these are conditioned) I am using Danish settings where the decimal separator is “,”Running the form in InfoPath everything works as it should,While If I run in a web browser I get validation error if the calculation results in decimal value.

    So, if I for example manually type the value "11,05" it is accepted, but if the calculation results in this value, I get validation error on that.

    Formatting on the text box is sat to display two decimals. The validation error is not raised right after the calculation is performed, but upon posting to the server side. 

    Any body have any idea?

    Ghassanchrist
  • 08-21-2012 02:10 AM In reply to

    Re: Validation error raised on post back!

     Infopath filler uses settings from client machine's operaing system (Windows), even if it is the same machine as sharepoint server set in Control Panel > Regional and Language Settings > Regional Optionstab > Standards and Formulas > Customize

      Client machine regional settings (used by client Infopath forms)

     

    while sharepoint (server), and I guess Infopath browser forms running by Sharepoint server 2010 Infopath Form Services, use sharepoint site's Regional settings  < Site settings (under Site Administration section) < Site actions, on ribbon, in browser:

     Sharepoint site regional settings

     

    So,  I would have tried to set Danish everywhere I could find.  

    Update:  

    Replied here the same but it seems did not work for others.
    Please note that there are  there are at least 4 places with regional settings possibly involved which are in: 

    1. server's operating system
    2. sharepoint site
    3. Infopath formatting
    4. Client machine's operating systems, they are many

     

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.