Keeping track of tab pages – PB Docs 2017
Keeping track of tab pages To refer to the controls on a tab page, you need the user object reference, not just the index of the tab page. You can use the tab page’s Control property array to get references to all your tab pages. Control property for tab pages The Control property of the…
Invoking component methods – PB Docs 2017
Invoking component methods After a connection to the server has been established and a proxy object or objects created, the client application can begin using the EJB components. To invoke an EJB component method, you need to execute the PowerScript statements required to perform these operations: Use the lookup method of EJBConnection to access the component’s home…
Pooling database transactions – PB Docs 2017
Pooling database transactions Transaction pooling To optimize database processing, an application can pool database transactions. Transaction pooling maximizes database throughput while controlling the number of database connections that can be open at one time. When you establish a transaction pool, an application can reuse connections made to the same data source. How it works When an…
Efficient compiling and performance – PB Docs 2017
Efficient compiling and performance The way you write functions and define variables affects your productivity and your application’s performance. Short scripts for faster compiling If you plan to build machine code dynamic libraries for your deployed application, keep scripts for functions and events short. Longer scripts take longer to compile. Break the scripts up so…
Referring to controls on tab pages – PB Docs 2017
Referring to controls on tab pages If you are referring to a control on a tab page in another window, you must fully qualify the control’s name up to the window level. The following example shows a fully qualified reference to a static text control:
|
1 2 |
w_activity_manager.tab_fyi.tabpage_today. & Â Â Â st_currlogon_time.Text = ls_current_logon_time |
This example from the PowerBuilder Code Examples sets the…
Stopping a print job – PB Docs 2017
Stopping a print job There are two ways to stop a print job. The normal way is to close the job by calling the PrintClose function at the end of the print job. The other way is to cancel the job by calling PrintCancel. Using PrintClose PrintClose sends the current page to the printer or spooler,…
Using sheets – PB Docs 2017
Using sheets In an MDI frame window, users can open windows (sheets) to perform activities. For example, in an electronic mail application, an MDI frame might have sheets that users open to create and send messages and read and reply to messages. All sheets can be open at the same time and the user can…
Building Web applications – PB Docs 2017
Building Web applications PowerBuilder provides several tools that you can use to build Web applications. This section provides a brief overview of these tools and points to where you can find more information. Appeon PowerServer Appeon PowerServer is a product that deploys existing PowerBuilder client/server applications to the Web. For more information, see the PowerServer…
Adding pbdom170.pbx to your application – PB Docs 2017
Adding pbdom170.pbx to your application The PBDOM classes are implemented in a DLL file with the suffix PBX (for PowerBuilder extension). The simplest way to add the PBDOM classes to a PowerBuilder target is to import the object descriptions in the pbdom170.pbx PBX file into a library in the PowerBuilder System Tree. You can also the add…
Runtime requirements for synchronization on remote machines – PB Docs 2017
Runtime requirements for synchronization on remote machines Support files required on remote machine If you do not install PowerBuilder or SQL Anywhere on remote machines, you must copy the files listed in the following table to use MobiLink synchronization with a PowerBuilder application. These files must be copied to the system path on the remote machine or…