Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
4Activity

Table Of Contents

PART 1 Sample Applications
CHAPTER 1 Using Sample Applications
About the sample applications
Samples on the Web
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 and memory management
Configuring memory management
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 51
Terminology
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
Using toolbars in MDI applications
Customizing toolbar behavior
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 81
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 89
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
Referring to controls on tab pages
Opening, closing, and hiding tab pages
Keeping track of tab pages
Creating tab pages only when needed
Events for the parts of the Tab control
CHAPTER 8 Using TreeView Controls
About TreeView controls
About TreeView controls 105
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
Using DataWindow information to populate a TreeView
CHAPTER 9 Using Lists in a Window
About presenting lists
About presenting lists 129
Using lists
Using drop-down lists
Using ListView controls
Using report view
CHAPTER 10 Using Drag and Drop in a Window
About drag and drop
About drag and drop 145
Drag-and-drop properties, events, and functions
Identifying the dragged control
CHAPTER 11 Providing Online Help for an Application
Creating Help files
Creating Help files 149
Providing online Help for developers
Providing online Help for users
PART 4 Data Access Techniques
CHAPTER 12 Using Transaction Objects
About Transaction objects
About Transaction objects 157
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 MobiLink Synchronization
About MobiLink synchronization
About MobiLink synchronization 183
Working with PowerBuilder synchronization objects
Trying out the MobiLink Synchronization for ASA wizard
1Run the wizard
2Call synchronization objects from your application
3Deploy the application and database files
What gets generated
Using the synchronization objects in your application
Using the synchronization options window
Runtime requirements for synchronization on remote machines
Preparing to use the wizard
Preparing consolidated databases
Connection events
Table events
Working with scripts and users in Sybase Central
Creating remote databases
Creating and modifying publications
Creating MobiLink users
Adding subscriptions
Synchronization techniques
CHAPTER 14 Using PowerBuilder XML Services
About XML and PowerBuilder
About XML and PowerBuilder 213
About PBDOM
PBDOM object hierarchy
PBDOM node objects
•PBDOM_OBJECT
PBDOM_OBJECT
PBDOM_DOCUMENT
PBDOM_DOCTYPE
PBDOM_ELEMENT
PBDOM_ATTRIBUTE
PBDOM_ENTITYREFERENCE
PBDOM_CHARACTERDATA
PBDOM_TEXT
PBDOM_CDATA
PBDOM_COMMENT
PBDOM_PROCESSINGINSTRUCTION
Adding pbdom105.pbx to your application
Using PBDOM
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
CHAPTER 15 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 16 Implementing Rich Text
Using rich text in an application
Using rich text in an application 257
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 17 Piping Data Between Data Sources
About data pipelines
About data pipelines 279
Building the objects you need
Building a Pipeline object
Building a supporting user object
Building a window
Performing some initial housekeeping
Starting the pipeline
Monitoring pipeline progress
Canceling pipeline execution
Committing updates to the database
Handling row errors
Repairing error rows
Abandoning error rows
Performing some final housekeeping
PART 5 Program Access Techniques
CHAPTER 18 Using DDE in an Application
About DDE
DDE functions and events
CHAPTER 19 Using OLE in an Application
OLE support in PowerBuilder
OLE support in PowerBuilder 309
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
Three methods
Using a user object as an automation server
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 21 Building a Mail-Enabled Application
About MAPI
Using MAPI
CHAPTER 22 Using External Functions and Other Processing Extensions
Using external functions
Using external functions 413
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 23 Distributed Application Development with PowerBuilder
Distributed application architecture
Distributed application architecture 439
Server support
CHAPTER 24 Building an EAServer Component
About building an EAServer component
About building an EAServer component 445
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
Exposing an NVO as a Web service
Testing and debugging the component
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 25 Building an EAServer Client
About building an EAServer client
About building an EAServer client 501
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
Example
Handling errors
Handling CORBA exceptions
Scripting the Error event
Scripting the SystemError event
Deploying the client application
CHAPTER 26 Using SSL in PowerBuilder clients
Using secure connections with EAServer
Using secure connections with EAServer 531
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 27 Building a COM or COM+ Component
About building COM and COM+ components
About building COM and COM+ components 545
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
Security issues
Building COM/COM+ components in the Project painter
Registering components automatically
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:
Accessing PowerBuilder COM servers from clients
Visual Basic as client
C++ as client
Using PowerBuilder COM servers and objects with DCOM
CHAPTER 28 Building a COM or COM+ Client
About building a COM or COM+ client
About building a COM or COM+ client 575
Connecting to a COM server
Interacting with the COM component
Controlling transactions from a client
PART 7 Developing Web Applications
CHAPTER 29 Building an EJB client
About building an EJB client
About building an EJB client 583
Adding pbejbclient105.pbx to your application
Generating EJB proxy objects
Using an EJB Proxy project
•EJB Client Proxy icon
Using the ejb2pb105 tool
Viewing the generated proxies
Datatype mappings
Creating a Java VM
Connecting to the server
Exception handling
Client-managed transactions
Debugging the client
CHAPTER 30 Web Application Development with PowerBuilder
Building Web applications
Building Web applications 607
Web services
Web targets
JSP targets
Web DataWindow
DataWindow Web control for ActiveX
DataWindow plug-in
PowerBuilder window plug-in
PowerBuilder window ActiveX
CHAPTER 31 Building a Web Services Client
About Web services
About Web services 615
About building a Web services client
Choosing a Web service engine
Assigning firewall settings to access a Web service
Importing objects from an extension file
Generating Web service proxy objects
Connecting to a SOAP server
Invoking the Web service method
Using the UDDI Inquiry API
CHAPTER 32 Using the DataWindow Plug-in
About the DataWindow plug-in
About the DataWindow plug-in 631
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 33 Using the PowerBuilder Window Plug-in
About the PowerBuilder window plug-in
About the PowerBuilder window plug-in 641
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
•Window management
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 34 Using the PowerBuilder Window ActiveX
About the PowerBuilder window ActiveX
About the PowerBuilder window ActiveX 663
Kinds of applications that work with the PowerBuilder window ActiveX
How the PowerBuilder window ActiveX works
Installing and configuring the PowerBuilder window ActiveX
Developing and deploying a PowerBuilder window ActiveX application
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 35 Internationalizing an Application
Developing international applications
Using Unicode
Developing international applications 691
About Unicode
Unicode support in PowerBuilder
Internationalizing the user interface
Localizing the product
About the Translation Toolkit
CHAPTER 36 Building Accessible Applications
Understanding accessibility challenges
Understanding accessibility challenges 701
Accessibility requirements for software and Web applications
Creating accessible software applications with PowerBuilder
About form styles 723
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 40 Packaging an Application for Deployment
About deploying applications
About deploying applications 741
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 41 Deploying Applications and Components
Deploying applications, components, and supporting files
PowerBuilder Runtime Packager
PowerBuilder runtime files
Database connections
Java support
PowerBuilder extensions
PDF and XSL-FO export
Using the GNU Ghostscript distiller
Using the Apache FO processor
Plug-ins and PowerBuilder window ActiveX controls
PowerBuilder components on EAServer
PowerBuilder COM servers
PowerBuilder automation servers
Creating registry information for OLE automation objects
Web DataWindow on EAServer
Web DataWindow on COM+ or IIS
Index
0 of .
Results for:
No results containing your search query
P. 1
PB 10.5 - Application Techniques

PB 10.5 - Application Techniques

Ratings: (0)|Views: 2,069 |Likes:
Published by paxrex33

More info:

Published by: paxrex33 on Oct 13, 2011
Copyright:Attribution Non-commercial

Availability:

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

12/20/2012

pdf

text

original

You're Reading a Free Preview
Pages 17 to 362 are not shown in this preview.
You're Reading a Free Preview
Page 379 is not shown in this preview.
You're Reading a Free Preview
Pages 396 to 730 are not shown in this preview.
You're Reading a Free Preview
Pages 747 to 790 are not shown in this preview.
You're Reading a Free Preview
Pages 807 to 846 are not shown in this preview.

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
cfhoyoso liked this
morrison1981 liked this

You're Reading a Free Preview

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