<?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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Checking for invalid characters in file name for multiple files</title><link>https://www.infopathdev.com:443/forums/thread/94691.aspx</link><pubDate>Mon, 09 Dec 2013 19:58:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94691</guid><dc:creator>Deeayrian</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94691.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94691</wfw:commentRss><description>&lt;p&gt;Yes that makes perfect sense.&amp;nbsp; Wish I would&amp;#39;ve realized that hours and hours ago!&amp;nbsp; &lt;/p&gt;&lt;p&gt;I changed it to read: concat(&amp;quot;GetAttachmentAttribute /xpath=/my:myFields/ my:attachmentsSection/my:group19/my:Attachments[&amp;quot;, count(preceding-sibling::Attachments) + 1, &amp;quot;]/my:attachment /attr=Name&amp;quot;) &lt;/p&gt;&lt;p&gt;and it works perfectly!&amp;nbsp; Thank you so much Ernesto! &lt;/p&gt;</description></item><item><title>Re: Checking for invalid characters in file name for multiple files</title><link>https://www.infopathdev.com:443/forums/thread/94690.aspx</link><pubDate>Mon, 09 Dec 2013 19:40:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94690</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94690</wfw:commentRss><description>&lt;p&gt;Since the repeating node is my:Attachments, then that&amp;#39;s the node that needs the [] (square brackets)&lt;/p&gt;
&lt;p&gt;/my:myFields/ my:attachmentsSection/my:group19/my:Attachments[1]/my:attachment &lt;/p&gt;
&lt;p&gt;/my:myFields/ my:attachmentsSection/my:group19/my:Attachments[2]/my:attachment &lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;
&lt;p&gt;Does that makes sense?&lt;/p&gt;</description></item><item><title>Re: Checking for invalid characters in file name for multiple files</title><link>https://www.infopathdev.com:443/forums/thread/94689.aspx</link><pubDate>Mon, 09 Dec 2013 19:26:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94689</guid><dc:creator>Deeayrian</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94689</wfw:commentRss><description>&lt;p&gt;The repeating node is Attachments.&amp;nbsp; See screen shot that I have attached.&lt;/p&gt;&lt;p&gt;I did try changing my command to this: concat(&amp;quot;GetAttachmentAttribute /xpath=/my:myFields/ my:attachmentsSection/my:group19/my:Attachments/my:attachment [&amp;quot;, count(preceding-sibling::Attachments) + 1, &amp;quot;] /attr=Name&amp;quot;)&amp;nbsp;&amp;nbsp; but it still gave me the same error. &lt;/p&gt;</description></item><item><title>Re: Checking for invalid characters in file name for multiple files</title><link>https://www.infopathdev.com:443/forums/thread/94688.aspx</link><pubDate>Mon, 09 Dec 2013 18:09:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94688</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94688</wfw:commentRss><description>&lt;p&gt;Hi-&lt;/p&gt;
&lt;p&gt;From this xpath:&lt;/p&gt;
&lt;p&gt;/my:myFields/ my:attachmentsSection/my:group19/my:Attachments/my:attachment &lt;/p&gt;
&lt;p&gt;Which is the repeating node?&lt;/p&gt;</description></item><item><title>Checking for invalid characters in file name for multiple files</title><link>https://www.infopathdev.com:443/forums/thread/94682.aspx</link><pubDate>Mon, 09 Dec 2013 15:02:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94682</guid><dc:creator>Deeayrian</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94682</wfw:commentRss><description>&lt;p&gt;I have a file attachment control, in a repeating section so that there can be more than one, that need to be saved to a SharePoint list.&amp;nbsp; I have it set up so that when an end user attaches a file with an invalid character in the file name, they will receive a message letting them know they have to rename the file before they can attach it and then the rule removes the file from the attachment field (leaving it blank).&amp;nbsp; I can get this to work great on the first file attachment, but if there are multiple attachments, the rule doesn&amp;#39;t work on anything after the first attachment.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Here&amp;#39;s how I did it: &amp;nbsp;I set a rule on the file attachment control that when it changes, to set the qRules Command field to: concat(&amp;quot;GetAttachmentAttribute /xpath=/my:myFields/ my:attachmentsSection/my:group19/my:Attachments/my:attachment [&amp;quot;, count(preceding-sibling::Attachments/attachment) + 1, &amp;quot;] /attr=Name&amp;quot;)&amp;nbsp; then I set the Name field to result.&amp;nbsp; As mentioned, it works perfectly on the first file attached, but when I try it on the 2nd file attached, the error in the Qrules error field reads &amp;quot;Failed to select the attachment node.&amp;quot;.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;Any ideas? &lt;/p&gt;</description></item></channel></rss>