How the PowerBuilder window ActiveX works

The PowerBuilder window ActiveX displays a PowerBuilder child window inside a fixed space reserved on the Web page. The user can interact with the controls on the page, and the PowerBuilder scripts for the window and its controls can execute any PowerBuilder code. When the user switches to another Web page, the PowerBuilder window is closed and the PowerBuilder DLLs are unloaded from memory.

The PowerBuilder window ActiveX is included on an HTML page using the HTML Object element. It names one or more PBDs that contain PowerBuilder objects, the name of the child window object that is displayed on the page, and (optionally) the PowerBuilder Application object.

Security

Unsecured applications can access local files and can run local applications. These types of processing are often undesirable in an uncontrolled Web environment but may be perfectly acceptable on a corporate intranet where access is controlled. There are two versions of the PowerBuilder window ActiveX: one secure (PBRXS105.OCX) and the other unsecure (PBRX105.OCX). The secure version is extremely restricted, with no access to the client workstation.

NoteSome events always execute in secure mode As of PowerBuilder 7, the application Open event and some of the Constructor events for controls execute in secure mode even when you use the unsecure version of the window ActiveX. If your application logic depends on the ability to perform an activity that is not secure in these events, such as opening a file for writing, post an event message to the application or control. This is processed once the window ActiveX returns to standard mode.

Requirements

The PowerBuilder window ActiveX uses the PowerBuilder virtual machine as well as the ActiveX itself to provide a full range of PowerBuilder functionality.

Each client that is used to browse pages with the PowerBuilder window ActiveX needs supporting software installed on the local machine:

The PowerBuilder window ActiveX is especially useful in an intranet application where you have control over the setup of client machines.