Appeon Demo Applications Tutorial
Appeon Demo Applications Tutorial
Contents
1 About This Book ....................................................................................... 1
1.1 Audience ................................................................................................................... 1
1.2 How to use this book ................................................................................................. 1
1.3 Related documents ................................................................................................... 1
1.4 If you need help ......................................................................................................... 2
This book is written for developers using Appeon 6.5.1 for PowerBuilder.
Page 1
Introduces Appeons demo applications, including the Appeon Sales Application Demo,
Appeon Code Examples, Appeon ACF Demo, and Appeon Pet World, which show Appeons
capability in converting PowerBuilder applications to the Web.
Appeon Developer User Guide (or Working with Appeon Developer Toolbar)
Provides instructions on how to use the Appeon Developer toolbar in Appeon 6.5.1.
Working with Appeon Developer Toolbar is an HTML version of the Appeon Developer User
Guide.
Provides a detailed list of what PowerBuilder features are supported and can be converted to
the Web with Appeon 6.5.1 and what features are unsupported.
Appeon Features Help is an HTML version of the Appeon Supported Features Guide.
A process-oriented guide that illustrates the complete diagram of the Appeon Web migration
procedure and various topics related to steps in the procedure, and includes a tutorial that
walks the user through the entire process of deploying a small PowerBuilder application to
the Web.
Introduction to Appeon:
Guides you through all the documents included in Appeon 6.5.1 for PowerBuilder.
Page 2
or an Authorized Sybase Support Partner based on your support contract. You may access
the Technical Support Web site at http://www.sybase.com/support.
Page 3
Getting Started
2 Getting Started
2.1 Overview
Appeon 6.5.1 for PowerBuilder provides three PowerBuilder application demos that highlight
various features of the product and demonstrate Appeons ability to automatically transform
PowerBuilder applications into Web applications.
The three demos included with Appeon 6.5.1 for PowerBuilder are:
Appeon Code Examples highlights many essential and robustly supported features
used in most PowerBuilder applications. It is highly recommended that PowerBuilder
developers study the Appeon Code Examples and Appeon Features Help in order to
have a solid grasp of the features that Appeon supports, as well as the code for best
implementing these supported PowerBuilder features.
Each Appeon demo contains a set of source code for the deployment and application profile.
Table 2-1 lists all available demo applications and where they are stored.
Table 2-1: Demo applications
Application Name
sales_application_demo
Folder
%APPEON_DEVELOPER%\Appeondemo
appeon_acf_demo
%APPEON_DEVELOPER%\Appeondemo
appeon_code_examples
%APPEON_DEVELOPER%\Appeondemo
appeon_code_examples_server
%APPEON_DEVELOPER%\Appeondemo
pet_world
%APPEON_DEVELOPER%\Appeondemo
Page 4
Getting Started
Install EAServer, IIS, Weblogic, WebSphere, JEUS, or JBoss on the same machine.
Once you install anyone of them, it will function as both the Web server and the
application server in the demo configuration.
Install Appeon Server on the same machine and use the Complete installation
option.
Install Appeon Developer on the same machine and use the Complete installation
option.
Detailed installation and configuration instructions are provided in the Appeon Installation
Guide.
If you wish to install Appeon Server for UNIX or LINUX, you will need to configure
Appeon Developer to work with Appeon Server for UNIX and LINUX after the installation is
completed. For detailed instructions, refer to the Appeon Developer User Guide
Copies the three demos (PowerBuilder demos) into the folder where Appeon
Developer was installed.
Adds the AppeonSample database service in Adaptive Server Anywhere, and sets the
service to start automatically.
Page 5
Getting Started
Configures the JDBC connection cache appeonsample using the JDBC-ODBC Bridge
driver.
Once installation is complete, a menu item entitled Appeon 6.5 for PowerBuilder is added to
the Windows Programs menu. You can access the Appeon Demo PowerBuilder Workspace
directly from the menu by selecting Windows Start menu | Programs | Appeon 6.5 for
PowerBuilder | Appeon Developer | Appeon Demos | Appeon Demo PB Workspace to open
the Appeon Demo PowerBuilder Workspace.
When PowerBuilder starts, the demos will be loaded into the AppeonDemo workspace, as
shown in Figure 2-1. Refer to Figure 2-1 for more details.
Page 6
Getting Started
2.4.2.b Method 2: Open the demo workspace from the PowerBuilder IDE
When PowerBuilder starts, the Appeon Developer toolbar will be displayed within the
PowerBuilder IDE, but the Appeon demos will not be loaded. The user needs to manually
open the source code of the demos in PowerBuilder.
Open the source code by performing the following steps:
Step 1 Right-click on No Workspace in the PowerBuilder System Tree and select Open
Workspace.
Step 2 Go to the AppeonDemo folder for the Appeon Demo PowerBuilder Workspace
(AppeonDemo.pbw). The AppeonDemo folder is located directly under the Appeon
Developer installation directory. At default installation, the path is
%APPEON_DEVELOPER%\appeondemo. %APPEON_DEVELOPER% is the Appeon
Developer installation directory (for example: C:\Program
Files\Appeon\Developer6.5\appeondemo). Refer to Figure 2-2.
Page 7
Getting Started
Step 3 Select the AppeonDemo.pbw file to open it. The source code for the Appeon demos
is loaded in PowerBuilder. Refer to Figure 2-1.
Page 8
Getting Started
WebSphere
Windows
UNIX/LINUX
Windows
Page 9
Getting Started
JEUS
JBoss
.NET
UNIX/LINUX
Windows
UNIX/LINUX
Windows
UNIX/LINUX
Windows
Page 10
Page 11
Page 12
Order List
Customer
Details
Search tab
page
Search
Contains a list box for users to select a search type: Customer ID,
Order ID, Order Type, and Paid. Once the search type is selected, an
editable column or dropdown list box appears, allowing users to set
the search criteria. Click the Search button to perform the search.
Search Result
Print Statement
Prints a customer statement that contains both paid and unpaid orders
for the current customer.
Paid
Mailing Address
Customer Tree
Page 13
The Security Groups window allows users to add new groups, remove groups, and modify the
settings for existing groups. Refer to Figure 3-4.
Figure 3-4: Manage Security Groups
Step 2 Click the Modify button and view the settings for the selected group in the Group
Maintenance window that appears. Refer to Figure 3-5.
Figure 3-5: Group maintenance
To assign rights to a group, use the arrow buttons to move menu items from Unassigned
Menu Items to Assigned Menu Items. The Group Name field is read-only in this window.
Step 3 Save the settings and close the Group Maintenance and Security Groups windows.
3.4.2 User Accounts
Step 1 Click File | Security Manager | User Accounts. The User Accounts window is
displayed. Refer to Figure 3-6.
Page 14
Use the arrow buttons to assign membership to a group. The User ID, Password, and
Confirm Password fields are read-only in this window.
Step 3 Save changes and close the User Maintenance window to return to the User
Accounts window. Click Close in the User Accounts window.
Step 4 Any changes made to the user account will not take effect until the user exits the
application and logs in again.
3.4.3 Change password for current user
The Change Password window will change the password for the user currently logged in to
the system (in this case, the administrator). By default, the administrator password is set to
Null.
Page 15
Step 1 Click File | Change Password. The Change Password window is displayed. Refer to
Figure 3-8.
Figure 3-8: Change Password
Step 2 Type the old and new passwords and confirm the new password.
Step 3 Any changes made to the password for the current user will not take effect until the
user exits the application and logs back in again with the new password.
Page 16
Step 2 Enter the customer information. The customer ID, First Name, Last Name, and Title
information cannot be edited once they are saved.
Step 3 Save the new customer information and close the new customer window.
3.5.2 Customer Maintenance
Step 1 Click Customer | Customer Maintenance. The Customer Maintenance window is
displayed. Refer to Figure 3-11.
Figure 3-11: Customer Maintenance
Add, remove, or modify customer information. The Customer ID, Last Name, First Name,
and Title information are read-only and cannot be edited. A customer can only be removed if
the customer has not placed any orders. Orders can only be removed if they have not been
processed or shipped (for example, those with New Order status).
Page 17
Step 2 Modify a field directly by typing in the field and click Save to accept the change, or
select a customer from the list and click Modify to display the Customer Maintenance
window and change the customers information. The Customer ID, Last Name, First Name,
and Title information are read-only and cannot be edited.
Note: If you edit the fields directly in the customer maintenance window and then edit a
particular row using the Modify button, always remember to save the edited information
before clicking the Modify button.
Step 3 Save changes and close to return to the Customer Maintenance window.
3.5.2.a Sort, show all and filter
The Sort, Show All, and Filter buttons help the user to display rows in the DataWindow that
meet certain criteria.
Click the Sort button to select the sort criteria. (You can also select any column header to
sort the information by the selected column).
Click the Filter button to set criteria for displaying certain customer information. Users can
filter customer information using a number of criteria including Customer ID, Name, city,
state, country, and payment status.
Click the Show All button to show all customers.
3.5.3 Accounts Receivable
The Accounts Receivable window tracks orders that have been shipped to customers but have
not been paid for yet. Users can:
view customer and order information for orders that are unpaid,
Page 18
Figure 3-12: The Send Statement tab in the Accounts Receivable window
Step 2 Click the Send Statement tab in the Accounts Receivable window.
Users can view customers with unpaid orders. Customer information highlighted in yellow
indicates that a statement has already been printed.
Click on a name in the Customers group box to view the customers details (in the Current
Customer group box) and corresponding orders. The information in these fields is read-only
and cannot be modified from this screen.
Step 3 Click the Print Statement button in the Send Statement tab to print an invoice for the
shipped but unpaid orders.
3.5.3.b Receive Payment tab
Step 1 Click the Receive Payment tab in the Accounts Receivable window. Refer to Figure
3-13.
Page 19
Figure 3-13: The Receive Payment tab in the Accounts Receivable window
Users can view customers with unpaid orders. Customer information highlighted in yellow
indicates that a statement has already been printed.
Click on a name in the Customers group box to view the customers details and orders. All
the information in these fields, except for the Paid checkbox, is read-only and cannot be
modified from this screen.
Click the Select All button to mark all orders for a customer as paid.
Step 2 To mark an order as paid, select a customer. Click the Paid checkbox for an order
that has been paid or click Select All to select all orders. Click the Submit Payment button.
The customers name will be automatically removed from the Accounts Receivable system if
the customer has paid for all orders.
Page 20
Step 2 Click the Select Customer button to select the customer that the order belongs to or
key in the customer ID. If the order belongs to a new customer, remember to create a new
customer before entering an order for that customer. Refer to Figure 3-16.
Page 21
Step 3 Select a customer by clicking on the appropriate row. The Customer ID, Last Name,
First Name, and Title information is read-only and cannot be edited in this window.
Step 4 Click the Select Customer button. The customer information will be displayed in the
window.
Step 5 Select the Order Date from the scroll box or type the order date. Select the Order
Type.
Step 6 Click the Add Item button to add items to the order. A row appears in the Product
Detail window.
Step 7 Click the Product Name field to select a product from the DropDownListBox, and
select the quantity from the Quantity scroll box or type the quantity. Continue adding
additional items by clicking the Add Item button. Remove items by clicking the Remove Item
button. Refer to Figure 3-17.
Page 22
Step 8 Once all the desired items are added to the order, click the Submit Order button.
Once an order is submitted or canceled, the New Order window remains active until it is
actively closed so that you can submit an order for another customer.
3.6.2 Order maintenance
Step 1 Select Order | Order Maintenance from the dropdown menu. The Order
Maintenance window is displayed. Refer to Figure 3-18.
Page 23
Create a new order, remove an order, modify an order, or view the order details from the
Order Maintenance window. Orders can only be removed or modified if they have not been
processed or shipped (for example, has a New order status).
All the information in the Order Maintenance window is read-only and cannot be directly
modified in this window.
Select a customer by clicking on a row in the Select a Customer window. The corresponding
order information for that customer appears in the Order Information window, and the
products ordered are displayed in the Product Detail window.
Order Information: When a customer is selected, the relevant order information is displayed
in the Order Information window.
Click the arrow buttons to scroll among orders for a customer.
Click the New button to add a new order for a customer. For instructions on adding a new
order, refer to Section 3.6.1: New order.
Click the Remove button to remove an order for a customer. Only orders with New Order
status can be removed. Once the order is in Process (Order Status is set to Processing) or an
order has been shipped (Order status is set to Shipped), it cannot be removed.
Click the Modify button to modify an order. Once the order is in Process or has been shipped,
it cannot be modified.
Click the View button to view all the information about an order in the Order Detail window
that has the functionality to print a packing slip or address label.
Step 2 Click the View button. The Order Detail window displays. Refer to Figure 3-19.
Page 24
Step 3 Click the Print Packing Slip and Print Address Label buttons to print packing slips
and address labels. Click Close to return to the Order Maintenance window.
The Print Address Label will fail to work if you are running the application on an Appeon
Server running on UNIX/LINUX.
Step 4 Click Close in the Order Maintenance window.
3.6.3 Order processing
Step 1 Click the Order Processing icon (
) in the toolbar or select Order | Order
Processing from the menu. The Order Processing window is displayed and the New Orders
tab is activated. Refer to Figure 3-20.
Page 25
Step 2 Check the orders that are to be processed, and click the Start to Process button. The
orders will be removed from the New Orders tab page and will appear in Orders on the
Process tab page. For example, select orders 1-15-0-01 and 1-16-0-01 by checking the
checkbox next to the two orders and click the Start to Process button.
Step 3 Select the Orders in the Process tab. The orders selected for processing are
displayed in this tab. Refer to Figure 3-21.
Figure 3-21: Orders in process
Page 26
Step 4 Check the orders that have been processed (ready to be shipped), and click the
Processed button. The orders will be removed from the Orders in Process tab page and will
appear in the Orders Shipment window. For example, select orders 1-15-0-01 and 1-16-0-01
by checking the checkbox next to the two orders and click the Processed button.
Step 5 Click Close in the Order Processing window.
3.6.4 Order shipment
Step 1 Click the Order Shipment icon (
) in the toolbar or select Order | Order Shipment
from the menu. The Order Shipment window is displayed. Refer to Figure 3-22.
Figure 3-22: The Order Shipment window
All the orders that have been processed in the Order Processing window will now appear in
the Order Shipment window.
Step 2 Select the orders that are ready to be shipped and click the Ship button. The orders
will be removed from the Order Shipment window. All orders that have been shipped will
then appear in the Send Statement tab of the Accounts Receivable window.
Page 27
3.7.1.a Categories
Step 1 Click Product | Catalog Manager | Categories from the MDI dropdown menu. The
Catalog Manager Categories window displays. Refer to Figure 3-25.
Figure 3-25: Catalog Manager Categories
Step 2 Click directly in a field to modify the Category Name or Description. The category
name cannot be modified if there are products for this category. Click Save to save any
changes. The product count is automatically updated as changes are made to the product list,
reflecting the total product count for the given category.
Step 3 Click the Add button to add a new category. A new row appears. Type the new
category information into the fields.
Page 28
Step 4 Click the Remove button to delete a category. Only a category with no products
defined in it can be deleted from the Categories window.
Step 5 Click Close to close the Categories window.
3.7.1.b Products
Step 1 Click Product | Catalog Manager | Products from the MDI menu. The Catalog
Manager Products window is displayed. All the products are listed in the Products window.
Refer to Figure 3-26.
Figure 3-26: Catalog Manager Products
Step 2 Click directly in a field to modify the Product Name, Unit Price, or Description.
Click Save to save any changes.
Note: If you edit the fields directly in the Catalog Manager Products window and
then edit a particular record using the modify button, always remember to save the edited
information before clicking the Modify button.
Step 3 Click the Add button to add a new product. Refer to Section 3.7.2: New product for
instructions.
Step 4 Click the Remove button to delete a product. Only a product that has not been
ordered can be deleted from the Categories window.
Step 5 Click Close to close the Categories window.
3.7.2 New product
Step 1 Click Product | New Product from the MDI menu. The New Product window
displays. Refer to Figure 3-27.
Page 29
Page 30
Step 2 Work in the product catalog window using three additional buttons that appear in the
MDI window. Refer to Figure 3-29.
Figure 3-29: Product Catalog toolbar
Click the SaveAs button to save the catalog in a number of different formats. Note that the
SaveAs feature can save DataWindow contents to a Metafile, Text, Excel or HTML table
format in Windows; whereas only Text format saving is available in UNIX and LINUX.
Click the Print button to print the product catalog.
Click the Exit button to close the Product Catalog window.
3.8 Reports
The Reports menu in the Sales Application Demo window allows users to access the sales
and customer reports. The Sales reports can be viewed by order type, product category, and
customer. These three report view types do not work with Appeon Servers running on
UNIX/LINUX Refer to Figure 3-30.
Figure 3-30: The Report menu
Page 31
Step 2 Specify the date to be included in the report by selecting the date range. To get all
the data involved, keep the date scope from 00/00/0000 to 00/00/0000.
Step 3 Specify the format to display the data from the dropdown list box or from the 2D
Pie, 2D Bar Stacked, 3D Column, or Grid Data buttons.
Step 4 Click the Refresh button to display data. If the Auto Refresh option is enabled under
the Settings menu, there is no need to use this button unless you have changed the Date scope
for the report.
Step 5 Work in the sales report window with seven additional icons that appear when the
report is opened. Refer to Figure 3-32.
Figure 3-32: Sales Report by Order Type toolbar
Step 6 Adjust the settings from the Settings menu in the Sales Application Demo window.
For further instructions on changing the settings, refer to Section 3.8.5: Settings menu.
3.8.2 Sales reports by product category
Click Report | Sales Report | by Product Category from the menu. The Sales Report by
Product Category window displays.
The Sales Report by Product Category window displays the total sales for each category.
Follow the instructions given in the Sales Report by Order Type window shown previously in
Section 3.8.1. Refer to Figure 3-33.
Page 32
Page 33
Step 2 Specify the date to be included in the report by selecting the date range in years.
Step 3 Click the Refresh button to display data. If the Auto Refresh option is enabled under
the Settings menu, there is no need to use this button unless you have changed the Date range
for the report.
Step 4 Operate in the sales report window using three additional buttons that appear when
the report is opened: SaveAs, Print, and Exit.
Step 5 Adjust the settings from the Settings menu in the MDI window. For further
instructions on changing the settings, refer to Section 3.8.5: Settings menu.
3.8.4 Customer report
The Customer Report window displays a table containing all the customer data.
Step 1 Click Report | Customer Report from the menu. The Customer Report window
displays. Refer to Figure 3-35.
Page 34
Step 2 Specify the date to be included in the report by selecting the date range. To get all
the data involved, keep the date scope from 00/00/0000 to 00/00/0000.
Step 3 Click the Refresh button to display the data. If the Auto Refresh option is enabled
under the Settings menu, there is no need to use this button unless you have changed the Date
range for the report.
Step 4 Operate in the sales report window using three additional buttons that appear when
the report is opened: SaveAs, Print, and Exit.
Step 5 Adjust the settings from the Settings menu in the MDI window. For further
instructions on changing the settings, refer to Section 3.8.5: Settings menu.
3.8.5 Settings menu
Step 1 When a report is opened, a Settings menu automatically appears to the right of the
File menu. Open the Settings menu. Refer to Figure 3-36.
Figure 3-36: The Settings menu
Step 2 Select Settings | Default Settings | Date Scope. The Default Date Settings window
will display. Refer to Figure 3-37.
Page 35
Specify a default date range for the reports by selecting a date from and date to in the
spin text boxes.
Click the Set as Default button to set the date. Now the reports display data based on the
default date range.
The reports are loaded automatically in the selected format when Auto Refresh from the
Settings menu is selected. The format can be changed by clicking the report style buttons, or
by selecting a style from the dropdown list box in the report itself.
Step 3 Select Settings | Auto Refresh. The Auto Refresh setting enables the report to be
loaded automatically when the report style or date range is changed. This allows data to
instantly appear without requiring the user to click the Refresh button in the report each time
a setting changes. The Auto Refresh setting can be selected or unselected. A check mark
appears next to the Auto Refresh setting in the menu if it is active.
Step 4 Select Settings | Grid Report Options. The Grid Report Options window will be
displayed. Refer to Figure 3-38.
Figure 3-38: Grid Report Options dialog
Grid Report Options allows the user to select the text color, background color, and font size
for the grid report style.
Click the Choose Color button for text and background color. A Choose Color window is
displayed. Refer to Figure 3-39.
Page 36
Page 37
PowerBuilder DataWindow
features that Appeon supports.
1. Dot notation
2. EditMask
3. Events and Functions
4. Performance
5. Presentation Styles
6. Retrieval
7. Runtime Modification
8. Updating
9. Objects
10. Runtime Creation
11. Query Mode
PowerScript
1. Functions
2. Inheritance
3. Menu Techniques
4. Object Communication
5. System Objects
6. Drag & Drop
7. MAPI
8. OLE Object
Page 38
SQL
Standard
Controls
Graphs
User Objects
1. Business Class
2. Custom Visual User Objects
3. Dynamic TabPage Objects
4. Dynamic User Objects
5. Maintain DataWindow with UserObject
6. Parse SQL Statement
7. Text Style Changer
8. User Objects for Changing Colors
N-Tier Support
) in the PowerBar
Page 39
A menu at the top of the window that provides access to different examples and four
common actions: execute example, show examples panel, show only new examples,
and exit.
A toolbar directly below the menu that provides icons to the preceding four common
actions. Refer to Table 4-2 for more details.
A TreeView (example panel) on the left that provides a second method for accessing
the different examples. To display or hide the TreeView example panel, select or
deselect Show Example Panel on the Window menu, or click or release the Show
Examples Panel button on the toolbar.
File | Exit
Page 40
Window | Show
Examples Panel
4.3 DataWindow
There are 11 sub-categories of DataWindow code examples. You can view all sub-category
items by expanding the DataWindow item in the Examples Panel or by clicking the
DataWindow menu. The sub-categories are:
Events and Functions demonstrates the key events and functions Appeon supports.
Retrieval demonstrates different retrieval cases in which the data source is a stored
procedure, there are different DataWindow bands, or a DataWindow has computed
columns, etc.
Query Mode demonstrates how to retrieve or sort data using the QueryMode and
QuerySort properties.
Page 41
You can also run the example by selecting DataWindow | Dot Notation | Copy DataWindow.
Refer to Figure 4-2.
Figure 4-2: The Copy DataWindow example
Step 2 By clicking the Copy Using button (for example, Copy Using GetItem/SetItem),
data in the source DataWindow is copied into the destination DataWindow. Refer to Figure
4-3.
Figure 4-3: Data copied from the source DataWindow to the destination DataWindow
Step 3 There are six copying methods provided in the example. If you want to try another
method, click the Reset button first and then click another Copy Using button.
Page 42
The window object in the example is w_dw_copy. The primary (not complete) syntaxes in
the Clicked event of the buttons are shown in the following Table 4-3.
Table 4-3: Six copying methods
Button
Copy Using GetItem/SetItem
dw_dest.object.data = dw_source.object.date
Next
dw_dest.object.id[1,il_rows] = dw_source.object.id[1,il_rows]
dw_dest.object.line_id[1,il_rows] =
dw_source.object.line_id[1,il_rows]
Next
4.3.2 EditMask
There is one example provided to demonstrate the EditMask feature - DataWindow
EditMask.
Perform the following steps to run it:
Step 1 Click the plus sign next to EditMask in the Examples Panel. The sub-category is
expanded and the DataWindow EditMask example is displayed. Double-click
DataWindow EditMask to run the example.
You can also run the example by selecting DataWindow | EditMask | DataWindow EditMask.
Step 2 Click the String tab. The table illustrates how a string typed into the Set value text
box is displayed once the mask is applied. Set the cursor in any text box in the Displays
section. Type any value in the Set value text box and click the Set button. The value
entered in the Set value text box appears in the Displays text box with the appropriate mask
applied. Refer to Figure 4-4.
Page 43
In this example, test is entered in the Set value text box and the focus is on the first text
box that is using the !!!!! mask in the Display section. The string will appear in all caps:
TEST.
Step 3 Click the Get button to retrieve the value from the text box of the !!!!! Display
column. Refer to Figure 4-5.
Figure 4-5: Set or get mask value
Step 4 Click the Number tab. The functionality in this tab is similar to that in the String
tab. Enter a number in the Set value text box and set the cursor in any of the Display text
boxes. Click the Set button and the value entered in the Set value text box appears in the
text box that has focus and the appropriate mask is applied. Click the Get button to get the
value from the Display text box.
Step 5 Click the Date tab and enter a date in the Set value text box. Set the cursor in any
of the Displays text boxes and click the Set button to display the date in the appropriate
Displays text box with the correct Mask. Click the Get button to retrieve the value from the
Display text box.
Step 6 The Time tab and the DateTime tab work in the same way as the Date tab. The
difference is that the mask data type is time, datetime, or date.
Page 44
Step 3 The Discard Current Row button is for discarding the current row in the first
DataWindow. By default, the first row is the current row. You can also make a row the
current row by clicking it..
The window object in the example is w_dw_rows, and the function in the Clicked event of
the Discard Current Row button is RowsDiscard.
Page 45
Step 4 In the Copy vs. Move group box, select a source DataWindow and a destination
DataWindow. The source DataWindow must have data in it, and the destination
DataWindow must be a different window from the source DataWindow.
Step 5 Click the Copy (
) button and the current row in the source DataWindow is
copied into the destination DataWindow (both the source DataWindow and the destination
DataWindow are contained in the row).
The function in the Clicked event of the Copy button is wf_copy_row. The function applies
two DataWindow functions: RowsCopy and RowCount.
Step 6 Click the Move (
) button and the current row in the source DataWindow is
moved into the destination DataWindow (only the destination DataWindow has the current
row).
The function in the Clicked event of the Move button is wf_move_row. The function applies
two DataWindow functions: RowsMove and RowCount.
4.3.3.b Conditional BitMaps
4.3.4 Performance
There is one example for the Performance sub-category - 9K Records DataWindow.
Page 46
The window object in the example is w_9k. The function in the Clicked event of the Retrieve
button is dw_1.retrieve().
4.3.5 Presentation styles
There are ten examples provided to demonstrate nine DataWindow presentation styles.
This section uses Group DataWindow and RichText DataWindows to show how to work
with the examples. Perform the following steps to test the example. You can also run the
other examples by performing similar steps.
4.3.5.a Group DataWindow
Page 47
You can also run the example by selecting DataWindow | Presentation Styles | Group
DataWindow.
Step 2 Select one of the Group Examples (for example, Group Example 1) and Group
Example 1 is displayed as shown in Figure 4-9.
Figure 4-9: Group DataWindow example
Step 3 Click the Print button to print the DataWindow in PDF, or click the SaveAs button to
save the DataWindow.
The window object in the example is w_dwstyle_group.
4.3.6 RichText DataWindows
Click the plus sign next to the Presentation Styles in the example panel. The sub-category is
expanded and the titles of the examples are displayed. Double-click the RichText
DataWindows to run this example.
In each RichText example, you are allowed to edit, refresh, print, and save another copy of
the example.
Page 48
4.3.7 Retrieval
There are fourteen examples provided to demonstrate the DataWindow retrieval features.
This section uses Stored Procedure Source DataWindows and Enhanced Crosstab
DataWindow to show how to work with the examples. Follow the instructions and test the
example. You can also run the other examples by performing similar steps.
4.3.7.a Stored Procedure Source DataWindows
Page 49
The window object in the example is w_dw_stored_proc. There are three DataWindows in
the window. The one at the top is the Master DataWindow, which displays products that the
customer has ordered. The Product Information DataWindow displays information about the
current product in the Master DataWindow. The Customer Sales Orders for Product
DataWindow displays related order information.
4.3.7.b Enhanced Crosstab DataWindow
Page 50
Page 51
Figure 4-13: The Change Objects Color and Background Color example
Step 2 Click the Text Color button and a Choose Color dialog box displays. Refer to Figure
4-14.
Figure 4-14: Choose Color dialog box
Page 52
This section explains how to work with the Change Employee Salary example. Perform
the following steps to test it. You can also run the other examples by performing similar
steps.
To run the Change Employee Salary example:
Step 1 Click the plus sign next to Updating in the Examples Panel. The sub-category is
expanded and the examples are displayed. Double-click Change Employee Salary to run
this example.
You can also run the example by selecting DataWindow | Updating | Change Employee
Salary.
Step 2 Click the Retrieve button to retrieve data into the DataWindow. Refer to Figure
4-15.
Figure 4-15: The Change Employee Salary example
Step 3 Click the Highlight Employee button and the employees with Active status
checked will be highlighted. Refer to Figure 4-16.
Page 53
Step 4 You can increase or decrease the salaries of the highlighted employees by specifying
the plus or minus percentage and clicking the Calculate Salaries button.
Step 5 The salary changes do not take effect until you click the Update button.
The window object in this example is w_salary_admin. The syntax for update is
dw_employees.Update().
4.3.10 Object
Ten examples are given to showcase the properties for the following DataWindow objects
respectively, and how to create them: Bitmap, Button, Computed Field, GroupBox, Line,
Oval, Rectangle, Report, RoundRectangle and Text. Refer to Figure 4-17.
Page 54
Details on how to run these examples are not given in this section, however, you also can run
the examples easily by performing similar steps as shown in other sub-categories.
4.3.11 Runtime Creation
There is one example for the Runtime Creation sub-category: Dynamic Create DataWindow,
which demonstrates how to dynamically create a DataWindow using SQL or DataWindow
syntax. Refer to Figure 4-18.
Page 55
Details on how to run this example are not given in this section, however, you also can run
the example easily by performing similar steps as shown in other sub-categories.
4.3.12 Query Mode
There is one example for the Runtime Creation sub-category: QueryMode And QuerySort,
which demonstrates how to retrieve and sort data using the QueryMode and QuerySort
properties. Refer to Figure 4-19.
Page 56
Details on how to run this example are not given in this section, however, you also can run
the example easily by performing similar steps as shown in other sub-categories.
4.4 PowerScript
There are eight sub-categories of DataWindow code examples. You can view all the subcategory items by expanding the PowerScript item in the Examples Panel or by clicking the
PowerScript menu.
The sub-categories are:
Functions demonstrates how the Date functions, String functions, system functions,
overloading functions, and functions in a UserObject are executed.
Inheritance demonstrates the inherited business rule, the inherited DataWindow, and
the inherited UserObject.
Drag & Drop demonstrates how the Drag & Drop feature works.
Page 57
4.4.1 Functions
There are 18 examples provided to demonstrate the functions Appeon supports.
This section explains how to work with the Function Overloading example and the
Dynamic Create Objects example. Perform the following steps to test it. You can also run
the other examples by performing similar steps.
4.4.1.a Function Overloading
Step 2 Specify arguments (replace criteria) for the function of_global_replace in the fields.
Step 3 Click the Execute button.
The window object in this example is w_global_replace. As shown in the Clicked event of
the Execute button, the Clicked event calls one of the following three functions according to
the specified replacement criteria:
li_Cnt = of_global_replace(ls_text, ls_old, ls_new)
//parent function
Page 58
Step 2 Select an object from the dropdown list and click Create. A message will display in
the Object Message box saying if the operation is successful. Click Reset to restore the
settings.
4.4.2 Inheritance
There are three examples provided to demonstrate the inheritance feature.
This section explains how to work with the Text Style Changer example. Perform the
following steps to test the example. You can also run the other examples by performing
similar steps.
To run the Text Style Changer example:
Step 1 Click the plus sign next to Inheritance in the Examples Panel. The sub-category is
expanded and the titles of the examples are displayed. Double-click Text Style Changer to
run this example.
You can also run the example by selecting PowerScript | Inheritance | Text Style Changer.
Refer to Figure 4-22.
Page 59
Step 2 Click the Bold, Italic and Underline buttons in the User Object group box. The text
style in the group box is changed accordingly.
Step 3 Click the Bold button in the Inherited User Object group box. Instead of the text
changing to bold, the text changes to bold not allowed because the child user object
overloads the logic in the parent user object.
By clicking the Italic or Underline button in the Inherited User Object group box, different
behavior occurs in the text box than in the User Object group box. The window object in this
example is w_style_uos. In the two group boxes, there are two user objects u_style_ancestor and u_style_descendent. U_style_descendent is inherited from the
u_style_ancestor object.
4.4.3 Menu Techniques
There are two examples for the Menu Techniques: Cascading menu, and MenuItem
Attributes. This section explains how to work with the MenuItem Attributes example.
Perform the following steps to test the example. You can also run the other example by
performing similar steps.
To run the MenuItem Attributes example:
Step 1 Click the plus sign next to Menu Techniques in the Examples Panel. The subcategory is expanded and the MenuItem Attributes example is displayed. Double-click
MenuItem Attributes to run this example.
You can also run the example by selecting the PowerScript | Menu Techniques | MenuItem
Attributes menu item. Refer to Figure 4-23.
Page 60
Step 2 You may find that the menu in the Appeon Code Examples window application has
already changed. If you click the Menu 2 radio button, the menu of the application will
change again. Refer to Figure 4-24.
Page 61
Step 3 Select an item and change its attributes. Refer to Figure 4-25.
Figure 4-25: Change the attribute of a menu item
The properties in the Settings | Window Background Color | White menu item are changed to
invisible, disabled, and unchecked.
Step 4 Go to the Settings | Window Background Color menu. The White menu item
disappears (because it is invisible on the menu). Refer to Figure 4-26.
Page 62
The window object in this example is w_menu_functions. The syntax in the Clicked event of
the Menu 1 radio button is parent.ChangeMenu(m_menu_functions_main). The menu of the
application can be dynamically changed.
4.4.4 Object Communication
There are five examples provided to demonstrate the Object Communication functionality.
This section explains how to work with the Multi-Style Sort example. Perform the
following steps to test the example. You can also run the other examples by performing
similar steps.
To run the Object Communication example:
Step 1 Click the plus sign next to Object Communication in the Examples Panel. The subcategory is expanded and the titles of the examples are displayed. Double-click Multi-Style
Sort to run this example.
You can also run the example by selecting PowerScript | Object Communication | Multi-Style
Sort. Refer to Figure 4-27.
Page 63
Step 2 Select one of the sort modes (for example, Multi Mode).
Step 3 Click the Sort button and the Sort dialog box is displayed. Refer to Figure 4-28.
Figure 4-28: The Sort dialog box
Step 4 You can set the sort criteria by selecting a column title from the dropdown listbox.
In addition, you can add more sort criteria by clicking the Add or Insert button. After the sort
criteria are set, click OK.
The DataWindow will be sorted according to the sort criteria. Refer to Figure 4-29.
Page 64
The window object in this example is w_dw_sortstyle. There are several object
communications as follows:
The choice of radio button will be communicated to the Clicked event of the Sort
button to open the corresponding window.
Once the sort criteria is set, the sort criteria is returned to the w_dw_sortstyle, and the
text under the radio buttons is changed.
Page 65
Step 2 Select one web site and click Visit to open the URL. Click GetURL to view HTML
return of the specified URL. Click Reset to restore the settings. Click Close to leave this
window.
Page 66
Step 1 Click the plus sign next to SQL in the Examples Panel. The sub-category is
expanded and the titles of the examples are displayed. Double-click Dynamic SQL Format
2 to run this example.
You can also run the example by selecting SQL | Dynamic SQL Format 2.
Step 2 Select a department from the dropdown list box to retrieve data into the
DataWindow. Refer to Figure 4-31.
Figure 4-31: Select the department Finance
Step 3 In the Update all Employees group box, specify the dynamic SQL statement and
then click the Execute button, as shown in the following screenshot (Figure 4-32):
Figure 4-32: Execute dynamic SQL statement (type 2)
Page 67
Step 3 In the Salary Treatment box, click Plus or Minus, then click the Execute
button.
Step 4 The DataWindow is updated according to the criteria.
Page 68
Step 2 There are three tab pages: Properties, Functions, and Event Order. In the Properties
tab page, select a property (for example, BackColor). Refer to Figure 4-35.
Page 69
Step 3 Set the BackColor to a specific value. There are several options provided (255, 0,
65280, etc.). Select an option listed in the list box or enter a valid value in the Set Value
text box.
Step 4 Click the Get button. At the bottom of the window, the current value of the
BackColor property is displayed. Refer to Figure 4-36.
Page 70
Step 5 Click the Set button and the property is set to the specified value. The control
displays, as it is set. Refer to Figure 4-37.
Figure 4-37: Set the value of the BackColor property
Step 6 In the Functions tab page, select a function, enter the required arguments, and
execute the function. Refer to Figure 4-38.
Page 71
Step 7 In the Event Order tab page, view the records of the events that have been triggered.
Refer to Figure 4-39.
Figure 4-39: Viewing the event sequence of CheckBox control
Page 72
4.7 Graphs
There are four sub-categories of Graph examples. You can view all the sub-category items
by expanding the Graphs item in the Examples Panel or by clicking the Graphs menu.
The sub-categories are:
This section explains how to work with the Adding an Other Category to Graph example.
Perform the following steps to test it. You can also run the other examples by performing
similar steps.
Click the plus sign next to Graphs in the Examples Panel. The sub-category is expanded and
the titles of the examples are displayed. Double-click Adding an Other Category to
Graph to run this example.
You can also run the example by selecting Graphs | Adding an Other Category to Graph.
On the pie chart the Other category displays in pink, as shown in Figure 4-40.
Figure 4-40: Adding an Other category to Graph
Page 73
This section explains how to work with the Maintain DataWindow with UserObject
example. Perform the following steps to test it. You can also run the other examples by
performing similar steps.
To run the Maintain DataWindow with UserObject example:
Step 1 Click the plus sign next to User Objects in the Examples Panel. The sub-category is
expanded and the examples are displayed. Double-click Maintain DataWindow with
UserObject to run this example.
You can also run the example by selecting User Objects | Maintain DataWindow with
UserObjects.
Step 2 Click the Retrieve button for retrieving data into the DataWindow. Refer to Figure
4-41.
Figure 4-41: The Maintain DataWindow with UserObject example
Step 3 Change the currently selected row by clicking the First, Next, Prior, and Last
buttons.
Step 4 Insert a new row by clicking the New button.
Step 5 Delete the current row by clicking the Delete button.
Step 6 Save the changes by clicking the Update button.
Step 7 Exit the example by clicking the Exit button.
The window object in this example is w_uo_dw_record. The buttons group box at the top of
the window is a visual user object, u_dw_ribbon_2.
Page 74
Appeon-unsupported functions, execute business logic, or call other server components such
as CORBA components.
If you are running the application on an Appeon Server running on Sun Solaris, the following
two features: Distributed DataWindow and NVO Call DLL will not work.
This section explains how to work with the NVO Call DLL example. Perform the
following steps to test it. You can also run the other examples by performing similar steps.
To run the NVO Call DLL example:
Step 1 Click the plus sign next to n-Tier Support in the Example Panel. The sub-category is
expanded and the examples are displayed. Double-click NVO Call DLL to run this
example.
You can also run the example by selecting N-Tier Support | NVO Call DLL. Refer to Figure
4-42.
Figure 4-42: The NVO Call DLL example
Page 75
Examples
Application
Services
DataWindow
Services
Page 76
Linkage
Services
Objects
TreeView and
ListView
Window
Services
Step 2 Select appeon_acf_demo. The ACF Examples demo displays as shown in Figure
5-1.
Page 77
Page 78
Step 2 Double-click the example icon. The ACF Example - Date Services Example
window is displayed. Refer to Figure 5-3.
Figure 5-3: The ACF Date Services Example
Date Service performs a series of date related mathematical calculations based on the date
entered in the text box. The values displayed in red are the calculation results.
Page 79
Step 3 Enter a date in the text box and click the mouse on another field within the window.
All values in red change accordingly. Refer to Figure 5-4.
Figure 5-4: Change date to re-calculate
Page 80
Step 3 Click the arrow of a cell in the Salary column. A small calculator is displayed. You
can conduct basic mathematical calculations for the cell with the calculator.
Step 4 Click the arrow of a cell in the Start Date column. A calendar is displayed. You can
pick a date from the calendar and the date is displayed in the cell. Refer to Figure 5-6.
Figure 5-6: DDDW calendar
Page 81
with the Across Tab Pages example. Perform the following steps to test it. You can also
run the other examples by performing similar steps.
To run the Across Tab Pages example:
Step 1 Expand the Linkage Services item and click Across Tab Pages example. An
example icon is displayed in the right panel.
Step 2 Double-click the example icon. The Across Tab Pages window is displayed. Refer
to Figure 5-7.
Figure 5-7: The Across Tab Pages example
Step 3 Click the Retrieve button to retrieve data into the DataWindow (master
DataWindow). There are several detailed DataWindows for the master DataWindow. Each
detailed DataWindow is placed in one of the three tab pages.
5.6 Objects
There are two examples in the Objects category. You can view both of them by expanding
the Objects item in the left panel. The two examples in this category are designed to
demonstrate the objects functionalities. This section explains how to work with the Split
Bar 3 Pane Style example. Perform the following steps to test it. You can also run the other
example by performing similar steps.
To run the Split Bar 3 Pane Style" example:
Step 1 Expand the Objects item and click the Split Bar 3 Pane Style example. An example
icon is displayed in the right panel.
Step 2 Double-click the example icon. The Split Bar 3 Pane Style window is displayed.
Refer to Figure 5-8.
Page 82
The window in the example is divided into three sections by two split bars. By dragging and
dropping the bar, you can re-size the sections in the window.
Page 83
Step 3 Double-click the Eastern item. Items under Eastern will be displayed in both the left
panel and right panel.
Page 84
Figure 5-10: The Resize Dynamic Tab Pages example (Controls Resize Test)
Step 3 Move the cursor over the edge of the window until the pointer turns into a doubleheaded arrow.
Step 4 When you drag and drop the mouse to resize the window, the
DropDownPictureListBox will also be resized.
Page 85
Step 2 Select pet_world. The Pet World demo displays as shown in Figure 6-1.
Figure 6-1: Appeon Pet World
The main page consists of the following links: the Appeon Pet World logo link, the pet icon
links, Sign In, Cart, and Account, and a Search field, as shown in Figure 6-1.
Appeon Pet World logo It links you back to the main page.
Pet icons and links Each pet icon on the top pane or the pet link navigates to the detailed
view where you can select different products of the same category and view the product
description.
Sign In It displays the login page.
Cart It allows you to view products added to the shopping cart.
Account It allows you to view the account information if you already signed in, otherwise,
you will be linked to the login page first.
Search It helps you quickly find out the product you want.
Page 86
Page 87
Page 88
Page 89
Page 90
There are four examples in the Window Service category. You can view all the examples by
expanding the Window Service item in the left panel. The four examples in this category are
designed to demonstrate how a tab page or a textbox is re-sized with a mouse action.
This section explains how to work with the Resize Dynamic Tab Pages example. Perform
the following steps to test it. You can also run the other examples by performing similar
steps.
To run the Resize Dynamic Tab Pages example:
Step 1 Expand the Window Services item and click the Resize Dynamic Tab Pages
example. An example icon is displayed in the right panel.
Step 2 Double-click the example icon. The Resize Dynamic Tab Pages window is
displayed. Refer to Figure 6-8.
Page 91
Figure 6-8: The Resize Dynamic Tab Pages example (Controls Resize Test)
Step 3 Move the cursor over the edge of the window until the pointer turns into a doubleheaded arrow.
Step 4 When you drag and drop the mouse to resize the window, the
DropDownPictureListBox will also be resized.
Page 92
Page 93
The Application Profiles tab page contains configurations for applications or components that
will be deployed to the Appeon Server.
The DB Type Profiles tab page manages the database types that Appeon Deployment Wizard
supports for application deployments.
The Server Profiles tab page contains the settings for the Web Servers and the Appeon
Servers used for hosting the Web applications.
The Deployment Profiles tab page associates specified Web Server(s) and Appeon Server(s)
as a group for Web deployment.
The Connection Cache Profiles tab manages the JDBC connection caches used by the
deployed Web application.
Step 2 In the Application profiles tab page, select sales_application_demo and click the
Edit button to view the configured profile settings. Refer to Figure 7-2.
Page 94
Basic Settings
Web URL specifies the Web URL where the Web applications files will be placed.
PBL Version lists the Appeon supported versions for PBLs.
Application PBLs lists the PBLs for the selected application to be moved onto the Web. It
is recommended that all the PBLs in the application be moved.
DB Settings
You can view the database type specified for the demo in the DB Settings tab page, as shown
in Figure 7-3.
Page 95
Step 3 View the database type profiles in the DB Type Profiles tab page. Refer to Figure
7-4.
Page 96
Step 4 View the server profiles in the Server Profiles tab page. Refer to Figure 7-5.
Figure 7-5: Server Profiles
Page 97
Step 5 View the deployment profiles in the Deployment Profiles tab page. The deployment
profile Local Deployment is configured for the Appeon Server and Web server residing on
the same machine. Refer to Figure 7-6.
Figure 7-6: Deployment profile
For more information on Appeon Developer configuration, refer to the Appeon Developer
User Guide.
Page 98
Page 99
Page 100
Page 101
Step 5 Click the OK button. The feature analysis of the demo begins as shown in Figure
7-11.
Figure 7-11: Analysis Status window
Step 6 When analysis is complete, click the Close button. The analysis result will be
displayed in the Unsupported Feature Analysis Report window, as shown in Figure 7-12.
Page 102
Expand the tree view items to view the generated UFA report for the unsupported objects.
There are no unsupported features in the Sales Application Demo. For more details on the
UFA Report Window, refer to the Using UFA Tool chapter in the Appeon Developer User
Guide.
Page 103
Page 104
Step 5 Click Finish to exit or Finish and Run to run the deployed application.
Page 105
Once the Appeon Enterprise Manager login screen is loaded successfully, enter a valid
username and password (The username and password are those you specified when installing
Appeon Server. If you did not specify the username and password during the installation,
you can use the default admin as the username and password to log into AEM.). Click the
Logon button. The AEM start page will display when the login is successful.
Click on the Application Properties link in the left navigation bar or in the introduction
frame.
Application Properties is a set of tools for viewing and modifying all configurable Appeon
Server settings. A brief introduction to each tool is located on the Application Properties start
page. For more information on the tools, refer to the Appeon Server Configuration Guide.
7.6.2 Check transaction objects mapping
A transaction object is used for connecting PowerBuilder applications to a database. When
the PowerBuilder application is moved onto the Web, Appeon Server (EAServer extended
with Appeon Server) establishes a connection to the database using connection caches. Each
transaction object in the application must be mapped to a connection cache that is configured
to connect to the database used by the PowerBuilder application.
You can view the configuration of transaction objects in Transaction Objects of Application
Properties in AEM. Do not change this setting for the demo Web applications or they will
not work. Refer to Figure 7-16.
Page 106
Page 107
Step 1 Access the Web application using one of the following methods.
If both Appeon Server and Appeon Developer are running on the same machine using
Windows, you can use either of the following methods:
Method 1: From the computer where Appeon Developer is installed, choose Windows Start |
Programs | Appeon 6.5 for PowerBuilder | Appeon Developer | Appeon Demos | Appeon
Sales App Demo. The demo is automatically loaded in Internet Explorer.
Method 2: Click the Run Web App ( ) button in the Developer toolbar and select
sales_application_demo.
If Appeon Server and Appeon Developer are running on different machines using different
platforms (for example, Appeon Developer runs on Windows, while Appeon Server runs on
UNIX), you can directly access the following URL via Internet Explorer:
Input http://hostname:port/sales_application_demo/ in the address bar of the Internet
Explorer, where hostname stands for the machine name or IP address of Appeon Server, and
port stands for the HTTP port of Appeon Server (for example,
http://192.0.0.61:8080/sales_application_demo/).
Step 2 Login to the Web application using the default User ID and password. If you
changed the password in the PowerBuilder Sales Application Demo, use the same User ID
and Password you used for the PowerBuilder application. Refer to Figure 8-1 and Figure 8-2.
Page 108
Note: The menu below the Internet Explorer address bar is the demo menu, NOT the
Internet Explorer menu.
Step 3 Explore the Web application. For example, clicking the Order Viewer icon on
toolbar displays the Order Viewer window as shown in Figure 8-3. The Order Viewer
window contains almost everything that Appeon 6.5.1 for PowerBuilder supports, from
various DataWindow styles to advanced controls such as Tab, TreeView, and ListView.
Page 109
Figure 8-3: Order Viewer window in the Web Sales Application Demo
Page 110
Page 111
If both Appeon Server and Appeon Developer are running on the same machine using
Windows, you can use either of the following methods:
Method 1: From the computer where Appeon Developer is installed, choose Windows Start |
Programs | Appeon 6.5 for PowerBuilder | Appeon Developer | Appeon Demos | Appeon
ACF Example (AX). The demo will be automatically loaded in Internet Explorer.
Method 2: Click the Run Web App ( ) button in the Developer toolbar and select
appeon_acf_demo with the intended deployment option. Refer to Figure 8-5.
If Appeon Server and Appeon Developer are running on different machines using different
platforms (for example, Appeon Developer runs on Windows, while Appeon Server runs on
UNIX), you can directly access the following URL via Internet Explorer:
Input http://hostname:port/appeon_acf_demoAX/ in the address bar of the Internet
Explorer, where hostname stands for the machine name or IP address of Appeon Server, and
port stands for the HTTP port of Appeon Server (for example,
http://192.0.0.61:8080/appeon_acf_demoAX/).
Figure 8-5: Appeon ACF Demo on Web
Page 112
Page 113
Figure 8-7: Refresh on the web (After clicking the Refresh button)
Page 114
Index
Index
A
About This Book, 1
accessing Web application, Appeon Code
Examples, 109, 110
accessing Web application, Appeon Sales
Application demo, 107
accounts receivable
receive payment tab, 18
send statement tab, 17
ACF, 75
ACF Examples, 75
AEM launching, 105
analyzing, PowerBuilder features, 98
Appeon ACF Examples
application services, 77
DataWindow services, 79
linkage services, 80
objects, 81
TreeView and ListView, 82
Appeon ACF Examples, 75
Appeon ACF Examples, overview, 75
Appeon ACF Examples, running, 76, 85
Appeon Code Example, running, 38
Appeon Code Examples
DataWindow code examples, 40
Graphs, 72
N-Tier support code examples, 73
PowerScript code examples, 56
SQL code examples, 65
standard control code examples, 68
user objects code examples, 72
Appeon Code Examples, overview, 37
Appeon DataWindow menu, 111
Appeon Demo PB workspace, loading, 6
Appeon Pet World
Browsing products, 86
Maintaining user accounts, 87
Searching for products, 86
Signing in/out, 87
Submitting order, 89
Using shopping cart, 87
Validating billing information, 88
Appeon Server, starting, 8
application properties configuration, 105
application services, 77
application, deploying, 102
audience, 1
Appeon Demo Applications Tutorial
C
catalog manager
categories, 27
products, 28
categories, 27
changing password for current user, 14
checking transaction object mappings, 105
configuration in Appeon Developer,
verifying, 92
configuring Application Properties, 105
configuring transaction objects
application properties, 105
transaction object mappings, 105
converted Web applications
Appeon ACF Example, viewing, 110
Appeon Code Examples, viewing, 109
Appeon Sales Application demo,
viewing, 107
customer information management
accounts receivable, 17
customer maintenance, 16
new customer, 15
customer information management, 15
customer maintenance
filter, 17
show all, 17
sort, 17
customer report, 33
D
DataWindow code examples
Dot notation, 40
EditMask, 42
events, 44
functions, 44
object, 53
performance, 45
presentation styles, 46
query mode, 55
retrieval, 48
runtime creation, 54
runtime modification, 50
updating, 51
DataWindow services, 79
default application, selecting, 97
demo installation, 5
Page 115
Index
F
filter, 17
functions
Dynamic Create Objects, 58
Function Overloading, 57
functions, 44
functions, DataWindow, 44
functions, PowerScript, 57
G
Graphs, 72
H
how to use this book, 1
I
if you need help, 2
inheritance, 58
installation, verifying, 5
installing Appeon Developer, 5
installing Appeon Server, 5
installing demo, 5
installing PDFPrinter, 5
L
launching AEM, 105
launching Web application, Appeon Code
Examples, 109, 110
launching Web application, Appeon Sales
Application demo, 107
linkage services, 80
ListView, 82
loading Appeon Demo PB workspace, 6
from the newly added menu item, 6
opening the source code in
PowerBuilder, 7
O
object, 53
object communication, 62
objects, Appeon ACF Examples, 81
opening Appeon Demo PB workspace, 6
order information management
new order, 20
order maintenance, 22
order processing, 24
order shipment, 26
order information management, 19
order maintenance, 22
order processing, 24
order shipment, 26
order Viewer, 11
overview of demo applications, 4
P
performance, 45
PFC, 75
PowerBuilder demo, deploying, 102
PowerBuilder demos, starting, 6
PowerBuilder features, analyzing, 98
PowerScript code examples
functions, 57
inheritance, 58
menu techniques, 59
object communication, 62
System Objects, 64
presentation styles
Group DataWindow, 46
RichText DataWindows, 47
presentation styles, 46
product information management
catalog manager, 27
new product, 28
Page 116
Index
settings menu, 34
show all, 17
sort, 17
SQL code examples
Dynamic SQL Format 2, 65
Using Transaction Objects to Call
Stored Procedures, 67
SQL code examples, 65
standard control code examples, 68
starting Appeon Server, 8
starting PowerBuilder demos, 6
System Objects, 64
T
transaction object mappings, checking,
105
transaction objects configuration
application properties configuration,
105
transaction object mappings, 105
transaction objects configuration,
verifying, 104
TreeView, 82
U
unsupported PowerBuilder features,
analyzing, 98
updating, 51
user accounts, 13
user objects code examples, 72
V
verifying configuration transaction objects,
104
verifying installation, 5
verifying the configuration in Appeon
Developer, 92
viewing converted Web applications
Appeon ACF Example, 110
Appeon Code Examples, 109
Appeon Sales Application demo, 107
viewing product catalog, 29
W
Web application, Appeon Code Examples,
launching, 109, 110
Web application, Appeon Sales
Application demo, launching, 107
Web applications
Appeon ACF Example, viewing, 110
Page 117
Index
Page 118