Passing the variable
Open the Composition Editor on RoadRaceView. To add the RunnerDataView visual part as a secondary window, do the following:
1. Select Add Part from the Options menu.
2. Type RunnerDataView for the Class Name.
3. Type runner View for the Part Name.
4. Select OK.
5. Click mouse button 1 on an open space of the free-form surface.
Making the connections
To display the secondary window at the appropriate time, and with an appropriate runner, make the following connections:
1. Connect the selectedItem attribute of the Result List subpart to the runner attribute of the runner View part.
2. Connect the defaultActionRequested event of Result List to the openWidget event of runner View.
After you complete these connections, save the part.
Testing your visual parts
Select
to test the RoadRaceView.
Add several entries to the list and double-click on one of them. The Runner Data window should open with the runner number and finish time of the runner you double-clicked on. Close the Runner Data window. Double-click on another entry in the list. The Runner Data window should open showing the information for the new runner. Double-click on another runner while the Runner Data window remains open. The Runner Data window should change to show the information for the runner you just double-clicked on.
Last modified date: 06/11/2018