Combo box populating c# - InfoPath Dev
in

InfoPath Dev

Combo box populating c#

Last post 12-04-2009 08:02 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-03-2009 11:25 PM

    Combo box populating c#

     I'm writing a code to view people from the AD but I only get to see one but on appending I see all off them please can you help

    foreach (SearchResult r in searchResultp)
                    {
                       

                        DirectoryEntry de = r.GetDirectoryEntry();
                       xnMyForm.SelectSingleNode("/my:myFields/my:UserName", ns).SetValue(de.Properties["displayName"][0].ToString());
                       
                       
                    }

  • 12-04-2009 08:02 AM In reply to

    Re: Combo box populating c#

     You'll need to make sure that you're adding the values to a repeating node, and read up on the XPathNavigator to learn about how to create and add new XML nodes using it.

    The AppendChild() and AppendChildElement() methods are useful for doing this.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.