<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Conditional formatting of Repeatable Section</title><link>https://www.infopathdev.com:443/forums/thread/92760.aspx</link><pubDate>Thu, 05 Sep 2013 00:24:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92760</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=92760</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi - I&amp;#39;m sorry, but I am having trouble understanding what you are trying to do and what the issue is.... if you are still having trouble, can you attach a sample form under the options tab that shows the issue?&lt;/p&gt;</description></item><item><title>Conditional formatting of Repeatable Section</title><link>https://www.infopathdev.com:443/forums/thread/92365.aspx</link><pubDate>Tue, 20 Aug 2013 04:37:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92365</guid><dc:creator>Vincent</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92365.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=92365</wfw:commentRss><description>&lt;p&gt;Good day!&lt;/p&gt;&lt;p&gt;I need to make history of decisions&amp;nbsp;with repeatable section, which contains users decisions.&amp;nbsp;I made it with web-service, which enter data into database, then extract it on form open. The problem is&amp;nbsp;display data from web-service when document has more than&amp;nbsp;one root. For example, document has 3 Roots in GroupRoot and web service returns xml with 3 sections.&amp;nbsp;I made a conditional formatting on repeatable section from web-service&amp;nbsp;secondary datasource&amp;nbsp;-&amp;nbsp;hide if&amp;nbsp;field not equal field and as a result&amp;nbsp;nothing is&amp;nbsp;dispayed. After I tried to to use jscript method in conditional formatting on the same datasource. Every Root called method 3 times and only first decision displayed in every Root, but it must be dispayed only in first Root.&lt;/p&gt;&lt;p&gt;I used to call method like this - &amp;quot;xdExtension:CheckRequestNum(string(RequestNum)) = false()&amp;quot;. Can someone tell me how can I get current Root node? Or how can I make it without updating template scheme?&lt;/p&gt;&lt;p&gt;Method code:&lt;/p&gt;&lt;p&gt;function CheckRequestNum(ReqNum)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;debugger;&lt;br /&gt;&amp;nbsp;var node = null;&lt;br /&gt;&amp;nbsp;var nodes = XDocument.DOM.selectNodes(&amp;quot;/GroupRoot/Root&amp;quot;);&lt;br /&gt;&amp;nbsp;//var RequestNum = XDocument.DOM.selectSingleNode(&amp;quot;Root/Request/RequestNum&amp;quot;).text;&lt;br /&gt;&amp;nbsp;//if (ReqNum == RequestNum) return true;&lt;br /&gt;&amp;nbsp;//else return false;&lt;br /&gt;&amp;nbsp;while (node = nodes.nextNode())&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;var RequestNum = node.selectSingleNode(&amp;quot;Request/RequestNum&amp;quot;).text;&lt;br /&gt;&amp;nbsp;&amp;nbsp;if (ReqNum == RequestNum) return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;else return false;&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;</description></item></channel></rss>