Hello,
I am very new to InfoPath, so please bear with me.
On my form, I have a button, 2 text boxes and on rich text text box. The first text box, the user is to type in an id and click the button. I want to fetch the value in text box, do a look up in TFS based on that and then put the information in the other text boxes. I have written code for the button_clicked event that does the look up in TFS and returns the correct data. I have 2 issues:
1. How do I get the text in the first text box so that the button_clicked event can use it to do the look up. Right now, I've saved the text in the text box into a private variable in the textbox_Changed event, which I then use in the button_Clicked event. Is this right, or is there another way to do it. In C#, you can use the Text propery and get the text in a text box, but i don't see anything like that here.
2. I'm having trouble displaying information in the second text box and the rich text box. I have the strings saved in code under the button_Clicked event, but I don't know how to get it those strings into the textboxes.
Thanks.