Follow these steps:
With the statement you just added still highlighted, press F8 on your keyboard, and with the cursor (which now resembles a hand), select the SET in the highlighted statement again. This will add the new statement directly below the highlighted statement.
The completed event handler should like the following example:

The completed event handler should look the following example:
![]()
The completed event handler should look like the following example:
![]()
The logic for this event handler is slightly more complicated than it is for the other event handlers. We need to use a GUI statement to locate the selected scoring record from the group view, then move it into a single entity view to display it to the golfer.
All GUI statements that deal with group views require that the group views be explicitly indexed. We created our views by using the Match and Copy feature to copy the server views into our client procedure. The group views as they existed in the server procedure step were implicitly indexed. As such, they were copied into our client procedure step as implicitly indexed as well. We need to change the group view properties in our client procedure to make them explicitly indexed.
What this statement is essentially doing is sequentially scanning through all of the occurrences in the group view, starting from the first occurrence in the group view. When it finds a highlighted row, it sets the subscript or pointer of the group view to that row number. This will then allow us to move the highlighted occurrence of the import group view to the single entity view in the export view, which will then populate the secondary dialog fields when it opens.
The completed event handler should look like the following example:
![]()
The completed event handler should look like the following example:

Save your model.
The completed event handler should look like the following example:

|
Copyright © 2013 CA.
All rights reserved.
|
|