Using c# to set default textbox value - InfoPath Dev
in

InfoPath Dev

Using c# to set default textbox value

Last post 05-29-2009 10:22 PM by swathip. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-29-2009 01:34 PM

    Using c# to set default textbox value

    Ok, so I've written some c# code that queries a sql database for the next available ticket number.  My c# code returns the latest ticket number + 1.  How do I configure my form so that the ticket number textbox is set to the return value of my code?

  • 05-29-2009 10:22 PM In reply to

    Re: Using c# to set default textbox value

    Hi,

    Use the following code line to set a field value in C#.

    thisXDocument.DOM.selectSingleNode("Xpath of your text bxo field").text = returned value;

    Swathip
    www.ggktech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.