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 'Filter Data' option when creating rules or what it does. The reference is always just, 'click Filter Data button' and on to the next step.
What I am trying to do is the following:
1. The user selects a department name from a dropdown control (list items are from a data connection - no problem).
2. I want the dept number control to auto-populate, referencing the above data connection and pulling the correlating dept # value. Should the function be: DepartmentName[@Department_Name = @Dept_ID] (I think what I'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) The DepartmentName field is a value on the main connection. Then, using the Filter data button, I selected secondary data connection for Department_Name and said that it is equal to the value in the Dept_ID column on the list for the item with the same Department_Name as that selected in the #1.
3. The last piece is to auto-populate the approver of the form. Here is that formula: Dept_ID[@Role = "Approver" and @Dept_ID = @Title__UserName_]
The approvers are on a different data connection (UserPermissions). I want to look at the Dept_ID that was populated in #2, compare it to the DeptID on this list. I also need to make sure that the Role is set to Approver for this DeptID. If this is true, then pull the Approver's name from the list and populate the Approver textbox control.
If anyone can tell me I'm right or wrong, I would greatly appreciate it.