YOUR FEEDBACK
Two great PDF creators
Michael Jahn wrote: related to the snapscan - are their an samples of the ...
SOA World Conference
Virtualization Conference
$50 Savings Expire May 23, 2008... – Register Today!


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
POWERBUILDER LINKS YOU MUST CLICK ON


Getting Started with PowerBuilder
The workspace

Digg This!

When Bruce Armstrong contacted me about writing a PowerBuilder Beginner's column I agreed almost immediately. The reason for this is that there are many existing PowerBuilder applications in production and their original developers have moved to other positions or left the companies that wrote them.

Developers who may not be familiar with PowerBuilder must support these applications. They are entitled to articles to assist them just as we had back in the early days of PowerBuilder. Personally I've been using PowerBuilder since version 2 and continue to use it today.

My consulting business has allowed me to work with numerous companies over the past 10 years. These companies were different sizes, different industries, and had different development skills. This has provided and continues to provide a tremendous opportunity to learn what technologies companies are using, their development skill level, and what technology needs they have. What I've learned from visiting them is that not all companies use the latest technologies. Some companies aren't ready to move to the Web and others only need client/server applications. This is why one of my best-selling Computer-Based Training courses is PowerBuilder 9, which is a basic course. Not everyone uses the latest technologies.

So what does one do to get started with PowerBuilder? PowerBuilder is a tool with an incredible number of features and a lot of functionality and it's difficult to know where to begin. It's the best client/server development tool and has been for years. Sybase has also been adding more Web and distributed features so that you as a developer can work with one tool for all your development needs. This monthly series of articles will build two applications: a client/server and a Web application. This will take you - our readers - through the many processes in building applications.

This month's article will cover the PowerBuilder workspace and what kinds of targets are supported. The workspace defines an area of work and the different applications that are part of that workspace. It's very flexible in that you can create a different workspace for each application you have or one workspace for multiple applications. My personal preference is to use a single workspace. Why? The reason is that I want fast access to different objects in different applications so I can review code from one application that might be helpful in another. Also my preference is to work on client/server or Web applications in the same workspace. Since I'm a consultant I have a workspace for each of my clients. A single workspace contains all the targets that I maintain for that client. I have some clients whose workspace contains one target and others that have 25 targets. Figure 1 is a screen shot of one of my customer's workspaces and as you can see it contains numerous targets, both client/server and Web apps.

The workspace is divided into four sections, and each developer can customize the layout. The first section is the System Tree. This section shows the workspace name and all the targets in the workspace. This is where you drill down to review objects, edit objects, and regenerate. The second section is the Clip section, which is where you can store bits of code that can be pasted into your code. In the first article Steve talked about the importance of consistency and standards. The Clip section can help with consistent coding styles. The third section is the Output section. This section displays output from the regeneration of objects, errors when saving, or compilation messages. The final section is the rest of the workspace, which is where objects are edited. In Figure 1 this is on the right side of the screen.

Each section of the workspace can be displayed if desired and sized. Click on the Window dropdown menu and select System Tree, Output, or Clip to show or hide each section. If the section is currently displayed a check is displayed next to it. You can size or move the sections to customize the workspace.

There are some settings for the workspace that you should be aware of. They are accessed by choosing the Tools dropdown menu and then System Options. Click on the Workspaces tab to view the settings as shown in Figure 2. There only a few settings but they do make development easier. One thing I'll discuss is the number of recent objects, workspaces, and connections. These default to 8, 8, and 5 respectively and this is something I don't understand. I always change the numbers to the maximum supported. Why wouldn't you want to be able to pull up the maximum number of objects or workspaces? Targets define each application and indicate the type of application, and any specific settings for the application. PowerBuilder supports several types of applications like client/server, Web, EAServer components, and COM components.

Now that we've reviewed workspaces and targets it's time to get started creating our applications. The purpose of these articles is not to be a step-by-step tutorial but to discuss best practices based on our years of experience with PowerBuilder. We'll create a workspace named PBDJ10 that contains two targets. The first target will be a PowerBuilder application (client/server) named pbdj_CS. The second will be a JSP target called pbdj_Web. You might wonder why we're creating two targets. Simple. We plan on building two applications that have the same functionality: one a client/server application and the other a Web application. This approach will demonstrate how PowerBuilder can be used for both.

If you're new to PowerBuilder for Web development, I'll give you a tip to save a little time and aggravation when creating the JSP target. When defining a JSP target you must define and select the JSP server where the application will be deployed. Since we'll be deploying to EAServer (Sybase's Transaction Server) you'll need to install EAServer on your computer and define an EAServer profile. If you don't do this you'll have to stop in the middle of creating the target and start over. Once you've created the EAServer profile, go ahead and create a JSP target named pbdj_web that will be our Web-based application for the article series.

Now that we've created the workspace and targets our next article will begin to create the applications. You might wonder why I don't start to create objects now. The answer is that showing screens does not indicate progress; progress is indicated by a good design. In the last article Steve addressed standards. Standards are crucial to the success and longevity of any project and shouldn't be ignored.

Please pass along any comments and suggestions on topics of interest for this column. Just like standards are critical to the success of a project, comments and suggestions will ensure the articles are a success as well.

About Steve Katz
Steve Katz is a senior developer at HSBC Bank USA and has extensive experience developing applications utilizing PowerBuilder, Java, and other technologies. He has used PowerBuilder since v2.0a, taught at Techwave, and even wrote some articles about PowerBuilder a very long time ago.

About Larry Cermak
Larry Cermak is president of Branick Consulting, Inc, a firm specializing in enterprise solutions. Larry is a member of Team Sybase and a writer for the Sybase Developer Network. He is a frequent speaker at Sybase conferences across the country, and has published the only book available on Web DataWindows.

PBDJ LATEST STORIES . . .
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in midtown
The PB Future: More on Graphs in PowerBuilder 11.5
Last week I posted a screen shot of the new 3D Rendering capabilities being added to some of the 3D graphs in PowerBuilder 11.5. It was met with mixed reviews on the PowerBuilder Futures newsgroup (forums.sybase.com) so I went back to the drawing board to see what I could come up with.
BluePhoenix Expands Modernization Collaboration with Microsoft
BluePhoenix announced that it has expanded its collaboration with Microsoft on legacy modernization projects. The collaboration provides customers moving their applications or databases to .NET-based environments the best in both modernization services and technical support. BluePhoeni
Sybase PowerBuilder Delivers AJAX and .NET Enhancements Enabling Rich Internet Application Development
Sybase announced that AJAX development capabilities and further Microsoft .NET enhancements have been added to the latest version of Sybase PowerBuilder 11, the premier 4GL rapid application development (RAD) tool. PowerBuilder 11.2 represents another milestone in the PowerBuilder road
PowerBuilder 11.2 Released: Sybase's Flagship IDE
Sybase has released the production version of its flagship .NET development tool - PowerBuilder version 11.2. This latest release of its premier IDE for RAD includes not only standard fixes but also a good list of new features. Here is the 'Coles Notes' version of these new features.
PowerBuilder Takes You To .NET
In June of 2007, Sybase released PowerBuilder 11. PowerBuilder developers can now deploy PowerBuilder components as .NET Assemblies or as .NET Web Services. A PowerBuilder developer can now create these .NET resources so that those who develop .NET solutions can benefit from PowerBuild
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING POWERBUILDER / SYBASE NEWS
Sybase and Sun Set Guinness World Record for World's Largest Data Warehouse
Sybase, Inc. (NYSE:SY), the largest enterprise software and services company exclusively