Previous Topic: CA Gen Control through OCXsNext Topic: External Action Blocks


OCX Click Event

 --- EVENT ACTION flight_select_olecontrol1_click
|   SET export flight departure_date to export change the date
|   USE flight_server (procedure step)
|       WHICH IMPORTS:  Entity View export flight to Entity View import
|          flight
|       WHICH EXPORTS:  Group View export_group FROM Group View
 ---       export_group_flight

The example in the sample code reads all of the flights from a certain departure city and a certain arrival city for a date selected through the calendar CLICK event.

The CLICK event sets an export departure date to the attribute supplied by the OCX click event thedate. It then remote uses a server procedure to read the flights from the departure city to the arrival city on the specific date and returns a group view of those flights.