none
Setting the Value of a Numeric Field Programaticlly in Infopath RRS feed

  • Question

  • I have a field; type Whole Number or Decimal in Infopath

    my:/intField

    I want to set its value to a number.

    For the life of me I cannot figure out how to do this without changing it's data type to 'text".

    I tried removing the nil attribute before setting the value ..but this did not work either

    e.g. node.deleteself()

    Searching the online database didn't give any answers.....

    Thanks in advance.

     

    ADam


    jawsurgeon
    Saturday, November 12, 2011 6:17 PM

Answers

  • oops...

    figured it out.

    node.movetoattribute('nil",""http://www.w3.org/2001/XMLSchema-instance")

    node.deleteself()

    node.setvalue(integer.tostring)

     

    ...


    jawsurgeon
    • Marked as answer by Bruce Song Friday, November 25, 2011 12:36 PM
    Saturday, November 12, 2011 6:25 PM