Powerbuilder Documentation 9.0

Powerbuilder Documentation 9.0

PowerBuilder component on EAServer – PB Docs 90

PowerBuilder component on EAServer To run PowerBuilder components in EAServer, the runtime libraries for the version and build number of PowerBuilder in which the components were developed must be available on the server. When you install a maintenance release of PowerBuilder and deploy new or updated components to EAServer, make sure that the PowerBuilder VM…

Referencing entities in descendants – PB Docs 90

Referencing entities in descendants When you declare a variable whose datatype is a kind of object, such as a window, you can use the variable to reference any entity defined in the object, but not in one of its descendants. Consider the following code:

mycust is declared as a variable of type w_customer (mycust…

Performing some final housekeeping – PB Docs 90

Performing some final housekeeping When your application has finished processing pipelines, you need to make sure it takes care of a few cleanup chores. These chores basically involve releasing the resources you obtained at the beginning to support pipeline execution. Garbage collection You should avoid using the DESTROY statement to clean up resources unless you…

XML namespaces – PB Docs 90

XML namespaces XML namespaces provide a way to create globally unique names to distinguish between elements and attributes with the same name but of different terminologies. For example, in an XML invoice document for a bookstore, the name “date” could be used by accounting for the date of the order and by order fulfillment for…

Managing information in initialization files – PB Docs 90

Managing information in initialization files Functions for accessing initialization files PowerBuilder provides several functions you can use to manage application settings in initialization files. Table 36-1: PowerBuilder initialization file functions Function Description ProfileInt Obtains the integer value of a setting in a profile file ProfileString Obtains the string value of a setting in a profile…

Printing functions – PB Docs 90

Printing functions PowerScript provides predefined functions that you can use to generate simple and complex lists and reports. Using only three functions, you can create a tabular report in your printer’s default font. Using additional functions, you can create a report with multiple text fonts, character sizes, and styles, as well as lines and pictures….

Providing support for object lifetime control in MTS – PB Docs 90

Providing support for object lifetime control in MTS MTS, like EAServer and other object frameworks, notifies components about lifetime actions with activate and deactivate methods. Because MTS does not support instance pooling, when a new client calls a method on a PowerBuilder COM component running in MTS, its Constructor event is triggered and then its…

Chapter 24 Building an EAServer Client – PB Docs 90

Chapter 24 Building an EAServer Client About this chapter This chapter explains how to build a PowerBuilder client that accesses an EAServer component. For information about secure connections, see Chapter 25, “Using SSL in PowerBuilder clients” Contents Topic About building an EAServer client Connecting to EAServer Generating EAServer proxy objects Invoking component methods Using the…

Interacting with the COM component – PB Docs 90

Interacting with the COM component Invoking component methods Once a connection to a COM component has been established, the client application can begin using the component methods. Use the REF keyword for output parameters You must use the REF keyword when you call a method on a COM object that has an output parameter. For…

Setting up the Web server – PB Docs 90

Setting up the Web server Setting up the Web server involves: Specifying the MIME type Putting the files on the server Specifying the MIME type Using the appropriate software for your Web server, register the MIME type for the DataWindow plug-in. For PowerBuilder 9, the MIME type is:

The file extension associated with the…