Hello,
I tried last time many thing in InfoPath and SharePoint. I'am now able to put code behind in forms and to render this forms in SharePoint as Webform. Nice! :)
Now I wan't to create a form with only two fields: name and comment. The name field musst be field out with the current user-name in SharePoint. I know, in this forum is a thread wich descripe a How-To but it don't work.
Have anyone ideas or c# code to solve my problem?!
Here is one code I wrote in the FormEvents_Loading:
System.Xml.XPath.XPathNavigator root, user;
root = this.MainDataSource.CreateNavigator();
user = root.SelectSingleNode("//my:name",this.NamespaceManager);