Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Update InfoPath option button using XML

Update InfoPath option button using XML

Scheduled Pinned Locked Moved XML / XSL
sharepointxmlannouncementworkspace
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hoonzis
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups