Problem assigning values to numeric fields in a repeating table cloned row - InfoPath Dev
in

InfoPath Dev

Problem assigning values to numeric fields in a repeating table cloned row

Last post 04-04-2012 12:41 AM by johnraj. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-12-2010 09:36 AM

    Problem assigning values to numeric fields in a repeating table cloned row

    Hi All,

    I'm using InfoPath2007 and C#. I created a blank form then placed a number of controls including a repeating table and a button. I coded the button so that when clicked, a certain number of rows will be added and values assigned automatically.
    Everything runs fine when the fields in the row is of string data type but if changed to decimal data type (because I want to format the value to show fixed 2 decimal places), I'm getting this error: "Schema validation found non-data type errors."
    Following is a portion of the code:

    Row = Table.Clone();
    Row.SelectSingleNode("./my:Value", NamespaceManager).SetValue(Amount.ToString());

    where Amount is of data type double.

    What is the best way to resolve this issue? Any help will be greatly appreciated.

  • 01-12-2010 11:37 AM In reply to

    Re: Problem assigning values to numeric fields in a repeating table cloned row

    Solution found already. Thanks anyway. :)

  • 04-04-2012 12:41 AM In reply to

    • johnraj
    • Not Ranked
      Male
    • Joined on 03-04-2012
    • Chenna
    • Posts 2

    Re: Problem assigning values to numeric fields in a repeating table cloned row

    Can u send the solution to me .My emailId is [email protected]
    P.John Raj
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.