Hello All
I read following article and its sample code withmy own LOB
http://msdn.microsoft.com/en-us/library/bb852170.aspx
I am trying to use with my own lob with item table. Here I am trying to set initially with two fields itemcd, itemdesc.
here is my code
| XPathNavigator myNav = this.MainDataSource.CreateNavigator(); |
| string id = e.InputParameters["itemcode"].ToString(); |
| string firstName = e.InputParameters["itemdesc"].ToString(); |
| myNav.SelectSingleNode("/my:myFields/my:itemcode", this.NamespaceManager).SetValue(itemcode); |
| myNav.SelectSingleNode("/my:myFields/my:itemdesc", this.NamespaceManager).SetValue(itemdesc); |
| |
But whenever I compile it is giving me error bor both field i.e.
The name 'itemcode' does not exist in the current context C:\Documents and Settings\ashishk\My Documents\InfoPath Projects\form541\FormCode.cs 40 96 form54
Please advise, has anyone implemented this?
Ashish