Occurs when the DataWindow control or DataStore object is created, just before the Open event for the window that contains the control.
PowerBuilder event information Event ID: pbm_constructor
Web ActiveX event information Event name: onConstructor
There are no special outcomes for this event. The only code is:
0 Continue processing
You can write code for the Constructor event to affect DataWindow properties before it is displayed.
This example retrieves data for the DataWindow dw_1 before its window is displayed:
dw_1.SetTransObject(SQLCA)
dw_1.Retrieve( )