Making Screens Recognized as Different the Same

When navigating to each new host screen during design time, Presentation Designer compares it against the screen recognition rules of all the previously visited screens. The screen recognition rules evaluate the number of fields, their locations, and their values. During design time, if a recorded host screen is recognized as a new screen, a new version of the form is generated; during run time, instead of using a form you customized, a new form is automatically generated.

Note Screens that appear identical can actually be very different. The cause could be due to a single difference, such as a field misplaced by only one character position, text that wraps to another line only some of the time, or the total count of all of the fields.

Often, the quickest way to identify the differences between the two screens is to modify the screen recognition rules, identifying the differences between the two host screens. Once you have done so, you can then remove the functions from both that did not evaluate the same way.

To make screens recognized as different the same
  1. Open Presentation Designer.

  2. Create or open a project based on an active host session.

  3. Navigate to the host screen that is being recognized as "different," navigate away from it, and then return to it in such a way as to create a new form.

    The new form appears in the Project pane. Typically, the name of this form will be duplicated from the original with a number, such as 002, appended to it.

  4. From the Editor pane, select the Customize tab.

  5. In the Project pane, on the Forms page, right-click the name of the first version of the host screen that was created, and then select Screen Recognition Rule.

    The Screen Recognition Rule editor appears.

  6. Select Show User Fields and Show Host Fields.

    User-defined fields appear framed in light blue (cyan) and host fields appear framed in dark blue on the host screen image.

  7. Identify specific host fields as needed in the screen recognition rule.

  8. Use the Reference Screen Recognition Rule viewer to compare the original version of the host screen to the duplicated version.

    (For detailed instructions on how to use the Reference Screen Recognition Rule viewer, see Comparing Host Screens and Screen Recognition Rules.)

  9. In the Edit Screen Recognition Rule text area, delete the problematic sub rule(s), and make any other edits as desired.

    Note The screen recognition rule must remain a valid logical statement.
  10. Choose the OK button to save your changes.

    An error message appears if the screen recognition rule is no longer a valid expression. If the screen recognition rule is a valid expression, the Screen Recognition Rule editor closes.

  11. In the Project pane, on the Forms page, right-click the name of the second version of the host screen that was created, then select Delete.

  12. When prompted to confirm the deletion, choose Yes.

    The listing for the second version of the form is deleted.

  13. Test the changes to your screen recognition rule from the Interact tab by navigating away and back again. If both versions of the screen are recognized without creating a duplicate form, the problem has been resolved. If the problem persists, repeat steps 4 through 12.

Related Topics
Bullet Adjusting How Screens are Identified, Overview
Bullet Screen Recognition Rule Syntax
Bullet Improving Application Performance, Overview
Bullet Comparing Host Screens and Screen Recognition Rules
  Attachmate