<?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: Preceding-sibling usage</title><link>https://www.infopathdev.com:443/forums/thread/47761.aspx</link><pubDate>Fri, 09 Oct 2009 15:44:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47761</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47761</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In that case, using &lt;b&gt;../../Review[1]/Reviewer&lt;/b&gt; should probably do the trick, but you may be missing a prefix on Review or Reviewer, or both (like z:Review, or dfs:Review, etc).&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Preceding-sibling usage</title><link>https://www.infopathdev.com:443/forums/thread/47751.aspx</link><pubDate>Fri, 09 Oct 2009 10:38:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47751</guid><dc:creator>kiranps</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47751.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47751</wfw:commentRss><description>&lt;p&gt;Unfortunately i cannot attach the screenshot now. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To your question - &amp;#39;Do you want the Reviewer field to always default to the value of the Reviewer field in the &lt;i&gt;first&lt;/i&gt; row, or the value in the &lt;i&gt;previous&lt;/i&gt; row?&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Yes, that&amp;#39;s exactly what i am trying to do - The Reviewer field should&amp;nbsp;always default to the value of the Reviewer field in the first row when i insert new items (repeating sections) on the form.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Preceding-sibling usage</title><link>https://www.infopathdev.com:443/forums/thread/47750.aspx</link><pubDate>Fri, 09 Oct 2009 09:16:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47750</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47750</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Could you attach a screenshot of your data source and explain a little more clearly what you want to do?&lt;/p&gt;&lt;p&gt;Do you want the Reviewer field to always default to the value of the Reviewer field in the &lt;i&gt;first&lt;/i&gt; row, or the value in the &lt;i&gt;previous&lt;/i&gt; row?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Preceding-sibling usage</title><link>https://www.infopathdev.com:443/forums/thread/47749.aspx</link><pubDate>Fri, 09 Oct 2009 08:59:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47749</guid><dc:creator>kiranps</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47749.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=47749</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have created a infopath 2003 form based out off a MS access database. The form works fine.&lt;/p&gt;
&lt;p&gt;I was trying to setup the rules for one of the fields. This is how i am doing it. My table name is Review and the field is Reviewer.&lt;/p&gt;
&lt;p&gt;I went to Tools -&amp;gt; Default values -&amp;gt; Added one more data fieldd group and then went to the Reviewer field on the newly added (second available) group. Then default value for that field.&lt;/p&gt;
&lt;p&gt;Now i want to inherit the value of the first Reviewer value to the second group Reviewer field and the subsequent items that may be inserted during runtime.&lt;/p&gt;
&lt;p&gt;Could you please give me the exact syntax of the preceding-sibling for this scenario. I tried several combinations of&amp;nbsp;this. But that wouldn&amp;#39;t work:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example, i used preceding-sibling::Review[last()&amp;#39;/Reviewer&lt;/p&gt;
&lt;p&gt;or preceding-sibling::Review[1]/Reviewer&lt;/p&gt;
&lt;p&gt;or&amp;nbsp;&amp;nbsp;preceding-sibling::Review[1]&lt;/p&gt;
&lt;p&gt;Please let me know how can i use the preceding-sibling structure&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kiran&lt;/p&gt;</description></item></channel></rss>