<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Rule for calculated field</title><link>https://www.infopathdev.com:443/forums/thread/119534.aspx</link><pubDate>Fri, 27 Jul 2018 15:49:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119534</guid><dc:creator>jd422</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=119534</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;LOL.&amp;nbsp; It is working now.&amp;nbsp; I must have had some very minor typo or something.&amp;nbsp; After looking at the XSL file associated with the manifest file, I suspected that it should work.&lt;/p&gt;&lt;p&gt;The data field is in the HistoryItems node (the repeating node/section) in the XDocument.DOM.&amp;nbsp; The rule&amp;#39;s context is the repeating node and therefore it works as I wanted it.&amp;nbsp; I might say that a person could edit the rule and reference any of the sibling nodes and do something a lot more sophisticated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you for the reply.&lt;/p&gt;&lt;p&gt;&amp;nbsp;P.S. My apologies for the following rather verbose commentary:&lt;/p&gt;&lt;p&gt;I am&amp;nbsp;especially enjoying working with&amp;nbsp;my InfoPath form.&amp;nbsp; I am using&amp;nbsp;more than 1500 lines of&amp;nbsp;vbScript to manipulate&amp;nbsp;the data and behavior of the work flow.&lt;/p&gt;&lt;p&gt;My form is a request&amp;nbsp;for a new item in our content management system with a&amp;nbsp;workflow that goes from the requestor to Admin and two more levels&amp;nbsp;of approval.&amp;nbsp; It can&amp;nbsp;be rejected at any point in the workflow and go back to the requestor to be restarted.&lt;/p&gt;&lt;p&gt;I use&amp;nbsp;a couple of SharePoint lists for setting some&amp;nbsp;form behavioral parameters and names of approvers and also for some dropdown lists.&lt;/p&gt;&lt;p&gt;By way of the&amp;nbsp;underlying vbScript, the form can be moved/republished at either of two SharePoint libraries (development or production) and the form will automatically know which site it comes from and perform the&amp;nbsp;Save, Email and other such&amp;nbsp;tasks&amp;nbsp;in different ways.&lt;/p&gt;&lt;p&gt;I can open it from the development site or from locally saved exported files (manifest.xsf, template.xml, vbscript.vbs, etc.)&amp;nbsp;for testing and then republish it to the production site when&amp;nbsp;development is complete.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you, again.&lt;/p&gt;&lt;p&gt;Regards, Jim&lt;/p&gt;</description></item><item><title>Re: Rule for calculated field</title><link>https://www.infopathdev.com:443/forums/thread/119533.aspx</link><pubDate>Fri, 27 Jul 2018 15:10:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119533</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119533.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=119533</wfw:commentRss><description>So - the calculated field is in the HistoryItems? Can you attach your template under the Options tab in a reply so I can see what you are trying?</description></item><item><title>Rule for calculated field</title><link>https://www.infopathdev.com:443/forums/thread/119514.aspx</link><pubDate>Tue, 24 Jul 2018 18:43:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119514</guid><dc:creator>jd422</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=119514</wfw:commentRss><description>&lt;p&gt;If I have a repeating section&amp;nbsp;that has&amp;nbsp;a calculated field and a data field,&amp;nbsp;can&amp;nbsp;I&amp;nbsp;have a rule for the calculated field&amp;nbsp;to hide it based on the&amp;nbsp;value of the data field in the same section.&lt;/p&gt;&lt;p&gt;Example xpath of the data field inside&amp;nbsp;the repeating section:&amp;nbsp; &amp;nbsp;/my:myFields/my:group1/my:HistoryItems/my:HistNewRisk&lt;/p&gt;&lt;p&gt;&amp;nbsp;I don&amp;#39;t want the rule to hide the calculated field on all sections just because the rule is valid for the data on a different section.&lt;/p&gt;&lt;p&gt;&amp;nbsp;If it is possible, please&amp;nbsp;advise.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>