Advanced printing techniques – PB Docs 80
Advanced printing techniques Creating complex reports in PowerBuilder requires the use of additional functions but is relatively easy. You can use PowerScript functions to define fonts for a job, specify fonts and line spacing, place objects on a page, and specify exactly where you want the text or object to be placed. Defining and setting…
Handling row errors – PB Docs 80
Handling row errors When a pipeline executes, it may be unable to write particular rows to the destination table. For instance, this could happen with a row that has the same primary key as a row already in the destination table. Using the pipeline-error DataWindow To help you handle such error rows, the pipeline places…
OLE custom controls – PB Docs 80
OLE custom controls The OLE control button in the Controls menu gives you the option of inserting an object or a custom control in an OLE container. When you select an OLE custom control (ActiveX control), you fix the container’s type and contents. You cannot choose later to insert an object and you cannot select…
Providing online Help for developers – PB Docs 80
Providing online Help for developers Two ways to provide Help There are two ways to integrate online Help for your user-defined functions, user events, and user objects into the PowerBuilder development environment: The User button in the PowerBuilder main Help window is hardcoded to launch a file named PBUSR90.HLP: Context-sensitive Help for user-defined functions can…
Using tabs – PB Docs 80
Using tabs The Print function has several formats. The format shown on the preceding page prints a string starting at the left edge of the print area and then prints a new line. In other formats of the Print function, you can use tabbing to specify the print cursor position before or after printing, or…
Invoking another server component’s methods – PB Docs 80
Invoking another server component’s methods EAServer allows the methods of one server component to call methods of another server component. The other server component does not need to be another PowerBuilder component; it can be implemented in any language supported by EAServer. Accessing a component in the current server To access methods of another EAServer…
Creating and using a named server – PB Docs 80
Creating and using a named server Using your own named server involves these steps: Define the objects you will access. Build the runtime libraries for those objects. Register your server in the registry. Write code in the client that connects to your server, creates objects, and accesses their methods and properties. Creating the user objects…
Generating EAServer proxy objects – PB Docs 80
Generating EAServer proxy objects About EAServer proxy objects Each EAServer component has a corresponding proxy object in the client application. To access an EAServer component, you need to communicate through the EAServer proxy. An EJB component has two corresponding proxy objects in the client application–one for the home interface and one for the remote interface….
About the PowerBuilder window plug-in – PB Docs 80
About the PowerBuilder window plug-in The PowerBuilder window plug-in lets you display a PowerBuilder child window on a Web page viewed in a browser that supports Netscape plug-ins. Features The PowerBuilder child window can include all the familiar controls, including DataWindows, OLE objects, ActiveX (OCX) controls, and tree controls. You can also open other (popup…
Events for the PowerBuilder window ActiveX – PB Docs 80
Events for the PowerBuilder window ActiveX The PowerBuilder window ActiveX can respond to certain events occurring within the child window. These are outbound events, which execute first within the PowerBuilder window and then in the PowerBuilder window ActiveX. You can add JavaScript or VB Script code that responds to these events. The events are listed…