Update InfoPath option button using XML
-
Hello, I am developing quite complex workflow using SharePoint and Workflow foundation. The WF is started on a InfoPath form and through the process of the workflow values of fields are changed programaticaly in the infopath form. So far I had only textboxes which I was changing using this method:
MemoryStream myInStream = new MemoryStream(lFile.OpenBinary());
XmlDocument myDoc = new XmlDocument();
myDoc.Load(myInStream);XmlNode myRoot = myDoc.DocumentElement;
XmlNamespaceManager xmlNSManager = new XmlNamespaceManager(myDoc.NameTable);XmlNode node = myRoot.SelectSingleNode("/my:fieldPath", xmlNSManager);
node.InnerText = "Text which I want to put in the textbox";Now I have a Option button(Radio button), where you can swich from 3 values. I would like to be able to select one of these values programatically. I've checked the XML definition of the InfoPath form and I thought that I could just use the InnerText property and insert the proper text(text of one of the choices). But that is not working. I am new to InfoPath and I am not a member of any IP forums so I said I will try my luck here in CP :) thank you for any suggestions Honga