How to: Use a form parameter to filter data on another form

Use the steps in this topic to create a form parameter to pass data from one form to another form.

The solution used in this example shows a list of departments. When you double-click a department, a subform opens that shows you the employees of that department. You create two SmartObjects (Department and Employees) as well as editable and standard list views for each of the SmartObjects. You also create forms for departments and employees. Each form contains a list view, and by setting up an association between the Department and Employees SmartObjects, you can add multiple employees per department.

On the Department form, you configure a rule to transfer the department ID as a parameter on the Employee form. You configure a rule on the Employee form to filter employees according to the department ID.

You use the Department and Employee editable list views to create departments and employees.

Runtime Example

Scenario

Your company has three departments, Finance, Human Resources and Sales. Each department has employees. Your Finance department has three employees (Bob, Blake and Anthony), Human Resources has two (Codi and Dennis), and the Sales department only has one (Ashley).

You want to see a list of the departments and, when you double click on a department, a form opens showing a list of employees in that department.