View Single Post
 
Old 11-24-2005, 04:12 AM
happydigit happydigit is offline
Novice
 
Join Date: Nov 2005
Posts: 1
happydigit
Default Set focus on a textfield on a repeating table

Hello Friends,

I have a huge problem with Infopath SDK. Infopaths create in formcode.cs an OnAfterChange event for adding a new row on a repeating table. I want now to set the focus to a specified textfield in this row. With the following source code it doesn't works:

IXMLDOMNode xnFocus = e.Site.selectSingleNode("@ITEM_NUMBER");
thisXDocument.View.SelectText(xnFocus,Missing.Valu e);

Has anybody a suggestions for anotherway or there the failure is situated?

Thx a lot.
Reply With Quote