Installing the sample applications – PB Docs 2017
Installing the sample applications To install the samples from the PowerBuilder setup program, select Code Examples from the list of components. To install Code Examples applications, select Example Application. The setup program installs all samples in Code Examples subdirectories. Most Code Examples applications use a sample SQL Anywhere database called PB Demo DB. The Code Examples…
Building an EJB client (obsolete) – PB Docs 2017
Building an EJB client (obsolete) Contents About building an EJB client Adding pbejbclient170.pbx to your application Generating EJB proxy objects Creating a Java VM Connecting to the server Invoking component methods Exception handling Client-managed transactions Debugging the client About this chapter Enterprise JavaBeans components are obsolete technology, although the components operate as usual in this…
Using DataWindow information to populate a TreeView – PB Docs 2017
Using DataWindow information to populate a TreeView A useful implementation of the TreeView control is to populate it with information that you retrieve from a DataWindow. To do this your application must: Declare and instantiate a DataStore and assign a DataWindow object Retrieve information as needed Use the retrieved information to populate the TreeView Destroy…
Connecting to the server – PB Docs 2017
Connecting to the server The EJBConnection class is used to connect to an EJB server and locate an EJB. It has four methods: ConnectToServer, DisconnectServer, Lookup, and GetEJBTransaction. To establish a connection to the server, you need to execute the PowerScript statements required to perform these operations: Declare an instance of the EJBConnection class. Set…
Overview of class definition information – PB Docs 2017
Overview of class definition information Contents Terminology Who uses PowerBuilder class definitions A ClassDefinition object is a PowerBuilder object that provides information about the class of another PowerBuilder object. You can examine a class in a PowerBuilder library or the class of an instantiated object. By examining the properties of its ClassDefinition object, you can…
Customizing the Tab control – PB Docs 2017
Customizing the Tab control The Tab control has settings for controlling the position and appearance of the tabs. Each tab can have its own label, picture, and background color. All tabs share the same font settings, which you set on the Tab control’s Font property page. Pop-up menus and property sheets for Tab controls and…
Modifying an existing style – PB Docs 2017
Modifying an existing style Contents Identifying the window as the basis of a style The easiest way to get started building form styles is to copy an existing form style and work with it. By examining its structure and making small changes, you can quickly understand how form styles work. To begin by modifying an…
Rich text and the end user – PB Docs 2017
Rich text and the end user All the editing tools described throughout this chapter and in Working with Rich Text in Users Guide can be made available to your users. What users can do Users can: Use the toolbars for text formatting Use the pop-up menu, which includes using the clipboard and opening other rich text…
OLE objects in scripts – PB Docs 2017
OLE objects in scripts Contents The automation interface Automation and the Any datatype OLEObjects for efficiency Handling errors Creating hot links Setting the language for OLE objects and controls Low-level access to the OLE object OLE objects in DataWindow objects This chapter has described the three ways to use OLE in a window or user…
Using a RichText DataWindow object – PB Docs 2017
Using a RichText DataWindow object This section discusses: How scrolling differs from other DataWindow styles Problems you may encounter with default values for new rows What happens when the user makes changes Scrolling In a RichText DataWindow object, the rich text can consist of more than one page. A row of data can be associated…