<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Rules/Conditions</title><link>https://www.infopathdev.com:443/forums/thread/89180.aspx</link><pubDate>Tue, 23 Apr 2013 21:13:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89180</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89180</wfw:commentRss><description>In the first one, you should use the condition editor to select the DepartmentName from the secondary data connection on the &lt;em&gt;left side&lt;/em&gt; and the one from the form on the &lt;em&gt;right side&lt;/em&gt; of the comparison. Likewise for the DeptID.</description></item><item><title>Re: Rules/Conditions</title><link>https://www.infopathdev.com:443/forums/thread/89178.aspx</link><pubDate>Tue, 23 Apr 2013 21:00:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89178</guid><dc:creator>Rob Kocher</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89178.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89178</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy.&amp;nbsp; Just a quick question for the two Dept. names - The first one - is it the value on the form&amp;nbsp;or the first secondary data connection?&amp;nbsp; And the second, the value in the second secondary data connection?&lt;br /&gt;&lt;br /&gt;There are two different lists pulling the information.&amp;nbsp; I could combine them and maybe that would be easier.&lt;/p&gt;</description></item><item><title>Re: Rules/Conditions</title><link>https://www.infopathdev.com:443/forums/thread/89176.aspx</link><pubDate>Tue, 23 Apr 2013 20:27:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89176</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89176.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89176</wfw:commentRss><description>&lt;p&gt;2.&lt;/p&gt;&lt;p&gt;I believe the formula would look something like &lt;strong&gt;row[@DepartmentName = DepartmentName]/@Dept_ID&lt;/strong&gt; You can achieve this by selecting the @Dept_ID field and adding a filter with the condition &lt;strong&gt;@Department_Name = DepartmentName&lt;/strong&gt; (from the main data source).&lt;/p&gt;&lt;p&gt;3.&lt;/p&gt;&lt;p&gt;I believe the formula would look something like &lt;strong&gt;row[@Role = &amp;quot;Approver&amp;quot; and @Dept_ID = DeptID]/@Title__UserName_&lt;/strong&gt; You can achieve this by selecting hte @Title__UserName_ field, and adding a filter with the condition &lt;strong&gt;@Role = &amp;quot;Approver&amp;quot; AND @Dept_ID = DeptID &lt;/strong&gt;(from the main data source).&lt;/p&gt;</description></item><item><title>Rules/Conditions</title><link>https://www.infopathdev.com:443/forums/thread/89173.aspx</link><pubDate>Tue, 23 Apr 2013 19:07:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89173</guid><dc:creator>Rob Kocher</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89173.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=89173</wfw:commentRss><description>&lt;p&gt;I know there are lots of variations of the different rules, but I cannot seem to find any detailed instructions on how to use the &amp;#39;Filter Data&amp;#39; option when creating rules or what it does.&amp;nbsp; The reference is always just, &amp;#39;click Filter Data button&amp;#39; and on to the next step.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;What I am trying to do is the following:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; The user selects a department name from a dropdown control (list items are from a data connection - no problem).&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; I want the dept number control to auto-populate, referencing the above data connection and pulling the correlating dept # value.&amp;nbsp; Should the function&amp;nbsp;be:&amp;nbsp; DepartmentName[@Department_Name = @Dept_ID]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (I think what I&amp;#39;m saying is the DepartmentName value on the form is querying the Department_Name of the data connectoin and returning the value of the correlating Dept_ID)&amp;nbsp; The DepartmentName field is a value on the main connection.&amp;nbsp; Then, using the&amp;nbsp;Filter data button, I selected secondary data connection for Department_Name and said that it is equal to the value&amp;nbsp;in the Dept_ID column&amp;nbsp;on the list for the item with the same Department_Name as that selected in the #1.&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; The last piece is to auto-populate the approver of the form.&amp;nbsp; Here is that formula:&amp;nbsp; Dept_ID[@Role = &amp;quot;Approver&amp;quot; and @Dept_ID = @Title__UserName_]&lt;/p&gt;
&lt;p&gt;The approvers are on a different data connection (UserPermissions).&amp;nbsp;&amp;nbsp; I want to look at the Dept_ID that was populated in #2, compare it to the DeptID on this list.&amp;nbsp; I also need to make sure that the Role is set to Approver for this DeptID.&amp;nbsp; If this is true, then pull the Approver&amp;#39;s name from the list and populate the Approver textbox control.&lt;/p&gt;
&lt;p&gt;If anyone can tell me I&amp;#39;m right or wrong, I would greatly appreciate it.&lt;/p&gt;</description></item></channel></rss>