currently i'm using Microsoft Office 2010 in FRENCH version, the problem is that there's a mild difference even in coding fml. I need to know how to locate the XpathNavigator in infopath designer 2010 manualy to be able to put the right XpathNavigator in C# editor.
This is the english version given by the tutorial : "/my:myFields/my:employee"
public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
XPathNavigator dataSource;
dataSource = this.MainDataSource.CreateNavigator();
dataSource.SelectSingleNode(
"/my:myFields/my:employee", NamespaceManager).SetValue(this.User.UserName);
}

0 commentaires:
Enregistrer un commentaire