<?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: Using GetAttachmentAttribute in File attachment with repeating section</title><link>https://www.infopathdev.com:443/forums/thread/98748.aspx</link><pubDate>Wed, 20 Aug 2014 10:50:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98748</guid><dc:creator>Tosha Mehta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=98748</wfw:commentRss><description>Thanks a lot don. That did help :)</description></item><item><title>Re: Using GetAttachmentAttribute in File attachment with repeating section</title><link>https://www.infopathdev.com:443/forums/thread/98398.aspx</link><pubDate>Mon, 21 Jul 2014 04:44:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98398</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=98398</wfw:commentRss><description>&lt;p&gt;Hi Tosha,&lt;br /&gt;&lt;br /&gt;I have sent a sample form to your email and also attaching a sample here regarding this issue.&lt;br /&gt;&lt;br /&gt;concat(&amp;quot;GetAttachmentAttribute /xpath=/my:myFields/my:Attachments/my:Attachment[&amp;quot;, &lt;strong&gt;count(preceding-sibling::Attachment) + 1&lt;/strong&gt;, &amp;quot;]/my:File /attr=Name&amp;quot;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:11pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;font color="#000000" face="Arial" size="2"&gt;I believe that the sample formula above is correct, but I&amp;#39;m not quite sure why it is not working for you. If it is not the command syntax, then I am guessing that the form&amp;#39;s arrangement is causing the issue. Please check the form&amp;nbsp;I am attaching for your reference. Hope this helps.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Using GetAttachmentAttribute in File attachment with repeating section</title><link>https://www.infopathdev.com:443/forums/thread/98359.aspx</link><pubDate>Thu, 17 Jul 2014 05:04:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98359</guid><dc:creator>Tosha Mehta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98359.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=98359</wfw:commentRss><description>Hi, i am trying to use GetAttachmentAttribute for fetching the file name from a File attachment with a repeating section. I am aware that if i am using a repeating section then i will have to provide something like a counter for each section which will bring me the section number and for this purpose i am storing the count(preceding-sibling::*) + 1 value in a field and i pass the GetAttachmentAttribute as 

concat(&amp;quot;GetAttachmentAttribute /xpath=/my:myFields/my:AttachmentGroup/my:AttachmentSection[&amp;quot;, rowNumber, &amp;quot;]/my:Attachment /attr=Name&amp;quot;)

where rowNumber is a field containing count(preceding-sibling::*) + 1 value and AttachmentSection is the repeating section. After fetching the name for my attachment, i pass the result in the &amp;#39;SaveToSharePoint&amp;#39; command as i want to rename the attachment being saved in my library. 

The problem that i face is that if i upload two files with different extensions then the GetAttachmentAttribute picks up the dame name for both of them and gives the same name for both the files and different extensions. Can someone help me in understanding what am i doing wrong here? is anything wrong with my syntax for &amp;#39;GetAttachmentAttribute &amp;#39;?

Any help is appreciated

Thanks in advance</description></item></channel></rss>