<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validation on a group of controls</title><link>https://www.infopathdev.com:443/forums/thread/8061.aspx</link><pubDate>Mon, 24 Oct 2005 04:19:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8061</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8061</wfw:commentRss><description>Thanks again to both of you.  I will have a play with both ideas and see what happens.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;David.</description></item><item><title>Re: Validation on a group of controls</title><link>https://www.infopathdev.com:443/forums/thread/8060.aspx</link><pubDate>Fri, 21 Oct 2005 13:57:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8060</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8060.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8060</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;..and if you want to target a specific field in the nth instance of your repeating section, use something like:&lt;br /&gt;XDocument.DOM.selectSingleNode("/my:myFields/my:group1/my:group2[n]/my:field1");&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Re: Validation on a group of controls</title><link>https://www.infopathdev.com:443/forums/thread/8059.aspx</link><pubDate>Fri, 21 Oct 2005 11:56:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8059</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8059</wfw:commentRss><description>I think if you XPath query was something like XDocument.DOM.selectNodes("...").length &amp;gt; 0.  Put whatever XPath query you want where "..." is.</description></item><item><title>Validation on a group of controls</title><link>https://www.infopathdev.com:443/forums/thread/5036.aspx</link><pubDate>Fri, 21 Oct 2005 04:27:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5036</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5036</wfw:commentRss><description>I'd like to validate that at least one selection within a repeating group has been selected.  I've created the following group:&lt;br /&gt;&lt;br /&gt;&amp;lt;xsd:element name="Application"&amp;gt;&lt;br /&gt;&amp;lt;xsd:complexType&amp;gt;&lt;br /&gt;&amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;&amp;lt;xsd:element ref="my:Selected" minOccurs="0"/&amp;gt;&lt;br /&gt;&amp;lt;xsd:element ref="my:ApplicationName" minOccurs="0"/&amp;gt;&lt;br /&gt;&amp;lt;/xsd:sequence&amp;gt;&lt;br /&gt;&amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;&amp;lt;/xsd:element&amp;gt; &lt;br /&gt;&lt;br /&gt;Is there a quick way to test that the Selected field is true for at least one item within the repeating group?  &lt;br /&gt;&lt;br /&gt;If not I'll just loop around the group and test Selected for each item in turn.  Not a major drama, just looking to see if there is a more intelligent way to do this. :)&lt;br /&gt;&lt;br /&gt;David.</description></item></channel></rss>