<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Cycling through a list box for sending emails</title><link>https://www.infopathdev.com:443/forums/thread/14204.aspx</link><pubDate>Fri, 13 Jan 2006 04:36:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14204</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14204.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14204</wfw:commentRss><description>Try this code (I think it is a little cleaner than a for loop):&lt;br /&gt;&lt;br /&gt;DOMNodeList contactList = contacts.DOM.selectNodes("//YOUR_EMAIL_GROUP");&lt;br /&gt;&lt;br /&gt;IMSXMLNode next; // I don't know C# good, but declare a node here (what is the data type?)&lt;br /&gt;&lt;br /&gt;while( next = contactList.nextNode() )&lt;br /&gt;{&lt;br /&gt;	thisXDocument.UI.Alert( next.selectSingleNode( "my:emailNode" ).text );&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps - sorry if the syntax is a little off, I'm not quite fluent in C#.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Cycling through a list box for sending emails</title><link>https://www.infopathdev.com:443/forums/thread/14203.aspx</link><pubDate>Fri, 13 Jan 2006 04:32:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14203</guid><dc:creator>delu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14203.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14203</wfw:commentRss><description>Just before lunch, I finally managed how to do this :-)&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Cycling through a list box for sending emails</title><link>https://www.infopathdev.com:443/forums/thread/14202.aspx</link><pubDate>Fri, 13 Jan 2006 03:31:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14202</guid><dc:creator>delu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14202.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14202</wfw:commentRss><description>Hi Agni.&lt;br /&gt;&lt;br /&gt;It turns out it is not so easy.&lt;br /&gt;Right now, I have the following code:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;DataObject contacts = thisXDocument.DataObjects["Contacts"];&lt;br /&gt;contacts.Query();&lt;br /&gt;DOMNodeList contactList = contacts.DOM.selectNodes("//*");&lt;br /&gt;if ((contactList != null))&lt;br /&gt;{&lt;br /&gt;	for(int i = 0; i&amp;lt; contactList.length; i++)&lt;br /&gt;	{		&lt;br /&gt;		thisXDocument.UI.Alert(contactList&lt;i&gt;.text);&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I get the right number of pop-ups, but they are all empty.&lt;br /&gt;Why?&lt;br /&gt;&lt;br /&gt;For the select statement: How do I know the XML Hirarchy of the data source?&lt;br /&gt;&lt;br /&gt;Another thing I can't figure out is why can't I cycle through the list with a "foreach (DOMNode .." Statement? I always get an exception.</description></item><item><title>Re: Cycling through a list box for sending emails</title><link>https://www.infopathdev.com:443/forums/thread/14201.aspx</link><pubDate>Thu, 12 Jan 2006 10:50:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14201</guid><dc:creator>delu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14201.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14201</wfw:commentRss><description>Hi Agni.&lt;br /&gt;&lt;br /&gt;Wow, I'm impressed about your quick answer :-)&lt;br /&gt;&lt;br /&gt;Thanks a lot. I switched to C# because I'm more familiar with it and I also want to create some entries at the share point web parts, which seems to be very easy this way (but I just started).&lt;br /&gt;&lt;br /&gt;I will search for cycling through the data source with c#. Thanks :-)</description></item><item><title>Re: Cycling through a list box for sending emails</title><link>https://www.infopathdev.com:443/forums/thread/14200.aspx</link><pubDate>Thu, 12 Jan 2006 09:11:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14200</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14200.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14200</wfw:commentRss><description>Hi Delu,&lt;br /&gt;Welcome on board!&lt;br /&gt;You dont need a hidden listbox binded to the datasource for this, you can directly loop through the datasource for doing this.&lt;br /&gt;&lt;br /&gt;Search for "selectNodes" keyword in the forum you will find lot of posts which specify how to loop through the the reapeating nodes.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Cycling through a list box for sending emails</title><link>https://www.infopathdev.com:443/forums/thread/12739.aspx</link><pubDate>Thu, 12 Jan 2006 08:27:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12739</guid><dc:creator>delu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12739.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12739</wfw:commentRss><description>Hi there!&lt;br /&gt;&lt;br /&gt;I'm sorry for this easy question, but I don't know java script and not much about infopath and I'm trying to get a quick solution.&lt;br /&gt;&lt;br /&gt;I created an infopath document and I want to send an email to all members of a sharepoint contact list on submission to a sharepoint form library.&lt;br /&gt;&lt;br /&gt;I created a "submit" butten and I got the email address from all contact list members into a hidden list box (by creating a new data source).&lt;br /&gt;&lt;br /&gt;The final question is know, how do I cycle through the list box and append the items to a ";" seperated string in order to send an email? &lt;br /&gt;&lt;br /&gt;Thanks for any help!</description></item></channel></rss>