Activating and editing the OLE object

In the Design view

PowerBuilder stores an initial presentation of the OLE object that it displays before data is retrieved and in newly inserted rows. When you activate the OLE object in the Design view, you are editing the initial presentation of the OLE object. Any changes you make and save affect only this initial presentation. After rows are retrieved and data transferred to the OLE object, an object built using the data replaces the initial presentation.

In preview or at execution time

PowerBuilder displays the initial presentation of the OLE object while it is retrieving rows and then replaces it with the retrieved data.

After you activate the OLE object in preview or at execution time, you can edit the presentation of the data. However, you cannot save these changes. The object is recreated whenever data from retrieved rows is transferred to the OLE object.

For more information, see “Activating OLE objects”.

NoteSaving as a PSR You can save the object with its data by saving the DataWindow object as a Powersoft report (PSR). Select File>Save As File or File>Save Rows As from the menu bar.

StepsTo activate the OLE object in the container in the Design view:

  1. Select Open from the container’s pop-up menu.

    Selecting Open from an ActiveX control’s pop-up menu has no effect. ActiveX controls are always active.