Referring to text boxes

W

wvrider

I am using infopath 2007, and vsta to enhance some forms. I am using vb
language. I am a beginner to infopath and I am confused. I have a text box
in my infopath form named: Time. The xpath for the text box is:
/dfs:myFields/my:Time. I am wanting to display the time in the text box upon
loading the form. I do not know how to refer to the text box so that I can
assign values or formatting to. THanks in advance.
 
R

Ramana

Hi,

First, you need to get the node using Xpath then assign time value to that
node.

XDocument.DOM.selectSingleNode("/dfs:myFields/my:Time").text=Time(I.e,Assign
the time you want display)

I hope this will help for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top