Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

PART 1 Sample Applications
CHAPTER 1 Using Sample Applications
About the sample applications
Samples on the Sybase Web site
About the sample applications 3
Samples on the CD
Installing the sample applications
Opening the sample applications
Using the Code Examples application
Browsing the examples
Finding examples
Running and examining examples
PART 2 Language Techniques
CHAPTER 2 Selected Object-Oriented Programming Topics
Terminology review
Terminology review 11
PowerBuilder techniques
Other techniques
CHAPTER 3 Selected PowerScript Topics
Dot notation
Constant declarations
Controlling access for instance variables
Resolving naming conflicts
Return values from ancestor scripts
Types of arguments for functions and events
Ancestor and descendent variables
Optimizing expressions for DataWindow and external objects
Exception handling in PowerBuilder
Basics of exception handling
Objects for exception handling support
Handling exceptions
Creating user-defined exception types
Adding flexibility and facilitating object reuse
Using the SystemError and Error events
Garbage collection
Efficient compiling and performance
Reading and writing text or binary files
CHAPTER 4 Getting Information About PowerBuilder Class Definitions
Overview of class definition information
Overview of class definition information 49
Who uses PowerBuilder class definitions
Examining a class definition
Getting a class definition object
Getting detailed information about the class
Getting information about a class’s scripts
Getting information about variables
PART 3 User Interface Techniques
CHAPTER 5 Building an MDI Application
About MDI
Building an MDI frame window
Using sheets
Providing MicroHelp
Providing toolbars
Setting toolbar properties in the Menu painter
Setting toolbar properties in the Window painter
Setting toolbar properties in the Application painter
Using toolbars in MDI applications
Saving and restoring toolbar settings
Sizing the client area
About keyboard support in MDI applications
CHAPTER 6 Managing Window Instances
About window instances
About window instances 85
Declaring instances of windows
Using window arrays
Referencing entities in descendants
CHAPTER 7 Using Tab Controls in a Window
About Tab controls
About Tab controls 93
Defining and managing tab pages
Customizing the Tab control
Using Tab controls in scripts
•Referring to tab pages in scripts
Referring to tab pages in scripts
Using drop-down lists
Using ListView controls
Using report view
CHAPTER 9 Using TreeView Controls
About TreeView controls
About TreeView controls 125
Populating TreeViews
Functions for inserting items
Inserting items at the root level
Inserting items below the root level
Managing TreeView items
Deleting items
Renaming items
Moving items using drag and drop
Sorting items
Managing TreeView pictures
Pictures for items
Setting up picture lists
Using overlay pictures
PART 4 Data Access Techniques
CHAPTER 12 Using Transaction Objects
About Transaction objects
About Transaction objects 161
Description of Transaction object properties
Transaction object properties and supported PowerBuilder database interfaces
Working with Transaction objects
Transaction basics
The default Transaction object
Assigning values to the Transaction object
Reading values from an external file
Connecting to the database
Using the Preview tab to connect in a PowerBuilder application
Disconnecting from the database
Defining Transaction objects for multiple database connections
Error handling after a SQL statement
Pooling database transactions
Using Transaction objects to call stored procedures
Step 1: define the standard class user object
The Select Standard Class Type dialog box displays:
Step 2: declare the stored procedure as an external function
Step 3: save the user object
Step 4: specify the default global variable type for SQLCA
Step 5: code your application to use the user object
Supported DBMS features when calling stored procedures
CHAPTER 13 Using PowerBuilder XML Services
About XML and PowerBuilder
About XML and PowerBuilder 187
PBDOM object hierarchy
PBDOM node objects
Adding pbdom90.pbd to the library search path
Validating the XML
Creating an XML document from XML
Creating an XML document from scratch
Accessing node data
Manipulating the node-tree hierarchy
Handling PBDOM exceptions
XML namespaces
Setting the name and namespace of a PBDOM_ATTRIBUTE
CHAPTER 14 Manipulating Graphs
Using graphs
Working with graph controls in code
Populating a graph with data
Modifying graph properties
How parts of a graph are represented
Referencing parts of a graph
Accessing data properties
Getting information about the data
Saving graph data
Modifying colors, fill patterns, and other data
Using point and click
CHAPTER 15 Implementing Rich Text
Using rich text in an application
Using rich text in an application 231
Sources of rich text
Using a RichText DataWindow object
Using a RichTextEdit control
Giving the user control
Text for the control
Formatting of rich text
•Input fields
Input fields
Using database data
Cursor position in the RichTextEdit control
Preview and printing
Rich text and the user
CHAPTER 16 Piping Data Between Data Sources
About data pipelines
About data pipelines 253
Building the objects you need
Building a Pipeline object
Repairing error rows
Abandoning error rows
Performing some final housekeeping
PART 5 Program Access Techniques
CHAPTER 17 Using DDE in an Application
About DDE
DDE functions and events
CHAPTER 18 Using OLE in an Application
OLE support in PowerBuilder
OLE support in PowerBuilder 283
OLE controls in a window
OLE controls and insertable objects
Setting up the OLE control
Linking versus embedding
Offsite or in-place activation
Menus for in-place activation
Modifying an object in an OLE control
OLE custom controls
Setting up the custom control
Programming the ActiveX control
Programmable OLE Objects
OLEObject object type
Assignments among OLEControl, OLECustomControl, and OLEObject datatypes
Automation scenario
OLE objects in scripts
The automation interface
Automation and the Any datatype
OLEObjects for efficiency
Creating hot links
Setting the language for OLE objects and controls
Low-level access to the OLE object
OLE objects in DataWindow objects
OLE information in the Browser
Advanced ways to manipulate OLE objects
Structure of an OLE storage
Object types for storages and streams
Opening and saving storages
Opening streams
Strategies for using storages
CHAPTER 19 PowerBuilder Runtime Automation Server
Using the runtime automation server
Using the runtime automation server 347
Uses for runtime automation
Three methods
Using a user object as an automation server
2Build the object’s runtime library
Creating a class user object to be a server
Building the object’s runtime library
Registering the object
Writing client code that accesses the user object
Using PowerBuilder as an automation server
Creating the user objects you will access
Building runtime libraries
Writing client code that accesses PowerBuilder and user objects
Creating and using a named server
More about user objects and the registry
What are all the identifiers for?
Where information about your object is stored
Creating registry information
Deploying an application that uses the automation server
Multiple versions and updates
Runtime automation server reference
PowerBuilder.Application server object
CreateObject function
GenerateGUID function
GenerateRegFile function
GenerateTypeLib function
Exception codes
Sample registry update file
CHAPTER 20 Building a Mail-Enabled Application
About MAPI
Using MAPI
CHAPTER 21 Using External Functions and Other Processing Extensions
Using external functions
Using external functions 389
Declaring external functions
Sample declarations
Passing arguments
Calling external functions on UNIX
Using utility functions to manage information
Sending Windows messages
The Message object
Message object properties
Context information
•Context information service
•Internet service
Context information service
Context keyword service
CORBACurrent service
Error logging service
Internet service
Secure Sockets Layer service
Transaction server service
PART 6 Developing Distributed Applications
CHAPTER 22 Distributed Application Development with PowerBuilder
Distributed application architecture
Distributed application architecture 413
Server support
CHAPTER 23 Building an EAServer Component
About building an EAServer component
About building an EAServer component 419
About using the wizards
About the development process
Creating an EAServer profile
Working with shared and service components
About shared components
About service components
Threading issues and component types
Using the EAServer Thread Manager
Providing support for instance pooling
Providing support for transactions
Accessing a database from an EAServer component
Using connection caching
Performing retrieval operations
Performing updates
Passing result sets
Defining the component interface
Implementing an existing interface
Invoking another server component’s methods
Accessing component properties
Testing and debugging the component
•Live editing
Live editing
Remote debugging
Putting messages into the EAServer log
Printing data
Printing on the Solaris operating system
Printing to PDF
Deploying a component to EAServer
CHAPTER 24 Building an EAServer Client
About building an EAServer client
About building an EAServer client 473
Connecting to EAServer
Writing the code by hand
Using the wizard to create a Connection object
Generating EAServer proxy objects
Invoking component methods
Invoking a component method
Invoking an EJB component method
Destroying instances
Using the JaguarORB object
Instantiation using String_To_Object
Instantiation using the naming service API
Client- and component-demarcated transactions
Requesting a message back from the server
Handling errors
Handling CORBA exceptions
Scripting the Error event
Scripting the SystemError event
Deploying the client application
CHAPTER 25 Using SSL in PowerBuilder clients
Using secure connections with EAServer
Using secure connections with EAServer 503
SSL connections in PowerBuilder
SSL properties
ORB properties
Establishing a secure connection
Using SSL callbacks
Getting session information
Implementing the SSLCallback object
Specifying the SSLCallback object
Retrieving session security information
CHAPTER 26 Building a COM, MTS, or COM+ Component
About building COM, MTS, and COM+ components
About building COM, MTS, and COM+ components 517
About the Component Object Model
About PowerBuilder COM servers
Comparing automation servers and PowerBuilder COM servers
Methods and datatypes
Restrictions on coding
Recording errors in a log file
Accessing a database from a COM component
Providing support for object lifetime control in MTS
Security issues
Building COM/MTS/COM+ components in the Project painter
Registering components automatically
Deploying components to MTS
Deploying components to COM+
Choosing a custom or dual interface
Setting up the embedded PBD
How the PowerBuilder COM object executes
Memory allocation
Deploying a PowerBuilder COM server
Using a PowerBuilder COM server with a COM-enabled application
❖To use a PowerBuilder COM server with a COM-enabled application:
Deploying PowerBuilder COM objects to MTS
1Deploy files to the MTS server computer
2Import PowerBuilder COM objects into MTS
Deploy files to the MTS server computer
Import PowerBuilder COM objects into MTS
Create the client deployment file
Install the client deployment file
2Execute the client deployment file
Accessing PowerBuilder COM servers from clients
Visual Basic as client
C++ as client
Using PowerBuilder COM servers and objects with DCOM
CHAPTER 27 Building a COM, MTS, or COM+ Client
About building a COM, MTS, or COM+ client
About building a COM, MTS, or COM+ client 551
Connecting to a COM server
Interacting with the COM component
Controlling transactions from a client
CHAPTER 28 Building an EJB client
About building an EJB client
About building an EJB client 557
Adding pbejbclient90.pbd to the library search path
Generating EJB proxy objects
Using an EJB Proxy project
•EJB Client Proxy icon
Using the ejb2pb90 tool
Viewing the generated proxies
Datatype mappings
Creating a Java VM
Connecting to the server
Exception handling
Client-managed transactions
Debugging the client
PART 7 Developing Web Applications
CHAPTER 29 Web Application Development with PowerBuilder
Building Web applications
Building Web applications 581
Web services
Web targets
JSP targets
Web DataWindow
DataWindow plug-in
PowerBuilder window plug-in
PowerBuilder window ActiveX
CHAPTER 30 Building a Web Services Client
About Web services
About Web services 587
About building a Web services client
Adding PBSoapClient90.pbd to the library search path
Generating Web service proxy objects
Connecting to a SOAP server
Invoking the Web service method
Producing a Web service
CHAPTER 31 Using the DataWindow Plug-in
About the DataWindow plug-in
About the DataWindow plug-in 595
How the DataWindow plug-in works
Installing and configuring the DataWindow plug-in
Developing and deploying a DataWindow plug-in
Saving a Powersoft report (PSR)
Creating an HTML page
Sample page
Setting up the Web server
Setting up users’ workstations
CHAPTER 32 Using the PowerBuilder Window Plug-in
About the PowerBuilder window plug-in
About the PowerBuilder window plug-in 603
What kinds of applications make good plug-ins?
How the PowerBuilder window plug-in works
Installing and configuring the PowerBuilder window plug-ins
Installing and configuring the PowerBuilder window plug-ins
Using the secure PowerBuilder window plug-in
Developing and deploying a PowerBuilder window plug-in application
Developing and deploying a PowerBuilder window plug-in application
•Creating the PowerBuilder application
Creating the PowerBuilder application
Design choices for plug-in applications
Defining the starting window in the Window painter
Testing the application in PowerBuilder
Building the dynamic libraries
Attributes of the Embed element
Embed element with additional attributes
Setting up the server
Required components
Viewing the Web page and plug-in application
CHAPTER 33 Using the PowerBuilder Window ActiveX
About the PowerBuilder window ActiveX
About the PowerBuilder window ActiveX 625
Kinds of applications that work with the PowerBuilder window ActiveX
How the PowerBuilder window ActiveX works
Installing and configuring the PowerBuilder window ActiveX
Designing the application
Attributes of the Object element
Basic page
Client-side scripting
Events for the PowerBuilder window ActiveX
Viewing the Web page and PowerBuilder window ActiveX application
PART 8 General Techniques
CHAPTER 34 Internationalizing an Application
About international deployment
About international deployment 653
User interface design
DBCS support
About the Translation Toolkit
CHAPTER 35 Printing from an Application
Printing functions
Printing functions 657
Printing basics
Printing a job
Using tabs
Stopping a print job
Advanced printing techniques
CHAPTER 36 Managing Initialization Files and the Windows Registry
About preferences and default settings
About preferences and default settings 665
Managing information in initialization files
Managing information in the Windows registry
CHAPTER 37 Building InfoMaker Styles and Actions
About form styles
About form styles 669
Naming the DataWindow controls in a form style
Building and using a form style
Modifying an existing style
Identifying the window as the basis of a style
Building a style from scratch
Completing the style
Working with the central DataWindow controls
Adding controls
Defining actions
Using menus
Writing scripts
Adding other capabilities
Using the style
Building a form with the custom form style
Managing the use of form styles
PART 9 Deployment Techniques
CHAPTER 38 Packaging an Application for Deployment
About deploying applications
About deploying applications 687
Creating an executable version of your application
•Compiler basics
Compiler basics
Learning what can go in the package
Creating a PowerBuilder resource file
Choosing a packaging model
Implementing your packaging model
Testing the executable application
Delivering your application to end users
Installation checklist
Starting the deployed application
CHAPTER 39 Deploying Applications and Components
Deploying applications, components, and supporting files
PowerBuilder Runtime Packager
PowerBuilder runtime files
Database connections
Native database drivers
ODBC database drivers and supporting files
OLE DB database providers
JDBC database interface
Java support
PowerBuilder extensions
PDF and XSL-FO export
DataWindow Web control for ActiveX
Plug-ins and PowerBuilder window ActiveX controls
PowerBuilder component on EAServer
0 of .
Results for:
No results containing your search query
P. 1
Pb Application Techniques

Pb Application Techniques

|Views: 872|Likes:
Published by Ankit_Gupta_8850

More info:

Published by: Ankit_Gupta_8850 on Dec 19, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 16 to 120 are not shown in this preview.
You're Reading a Free Preview
Pages 136 to 164 are not shown in this preview.
You're Reading a Free Preview
Pages 180 to 277 are not shown in this preview.
You're Reading a Free Preview
Pages 293 to 755 are not shown in this preview.
You're Reading a Free Preview
Pages 771 to 784 are not shown in this preview.

Activity (3)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Tanith Ý Franco liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->