VPM Enterprise's Related Forms engine provides the following features:
When you run a form that is based on the VPM Enterprise Form_Toolbar (or a subclass), one of the first things the form does when it comes to the desktop is look around to see if there are any forms already on the desktop to which it is related.
You can imagine the permutations and combinations of forms that may already be on the desktop that VPM Enterprise must consider. Here's how the VPME Related Forms engine handles several common situations when a form is run:
∑ Parent First Ė Child Second: If a child form finds a parent form already on the desktop, it sets itself to show only records related to the current parent form record. It also enables the Parent Mode control on the toolbar.
∑ Child Only: If a child form does not find a parent form already on the desktop, it sets itself to the first record in the child table, view or CursorAdapter order, and the navigation controls on the toolbar navigate through all child records.
∑ Child First Ė Parent Second: If a parent form finds a child form already on the desktop, it sets itself to show the record related to the current child record. When the child form is selected again, the Parent Mode control will be enabled and the navigation controls will show only records related to the current parent record as long as Parent Mode is off.
It sounds complicated, and it was difficult to implement. However, we believe that you won't find it complicated in use because the behavior of VPME Related Forms is just what you and the users of your VPM Enterprise applications want and expect.
VPM Enterprise coordinates the record positioning of Related Forms. When the current parent record changes, VPM Enterprise repositions child forms to show records related to the new parent record. If you set a filter on the parent records or change the parentís index, the filter and index apply to the child forms as well. The child forms reflect parent record changes when you activate them.
Parent Mode Control Button
The VPM Enterprise Form Toolbar contains a Parent Mode control. The Parent Mode control allows you to change the current parent record while youíre still on a child form. Normally, Parent Mode is off and a child formís navigation controls move among the child records related to the current parent record. If you click the Parent Mode button to turn Parent Mode on, the navigation controls move among the parent records on the parent form and from one parent recordís child records to another on the child form. See Toolbar Controls.