| By Arthur Hefti | Article Rating: |
|
| November 26, 2008 11:10 AM EST | Reads: |
3,721 |
Last year I wrote an article in PBDJ describing an ASP.NET project that was done with DataWindow.NET in the browser ("Prognos" Volume 14, Issue 4) and PowerBuilder Web Services in the back end. The front end consisted of an intro page, two data entry pages, and one page with the result.
The front end was rewritten in a couple of other technologies to test different ways to create browser-based applications. This article covers solutions that run in different browsers and on different operation systems. I will also look at PowerBuilder 11.2 Webform although it is IE-only. At the end I will cover PowerBuilder WinForm and PocketBuilder as they could be solutions for applications that are not always connected.
This article doesn't cover all the possible techniques (Appeon comes to mind if you're fine with an IE-only solution or WPF
XBAP used for no-touch deployment of Windows applications) and doesn't cover a rewrite of the ASP.NET solution using third-party components.
The article shows the invocation of the help Web Service from one single button. The help Web Service takes three arguments (Configuration, Language, and Help Id). My presentation at TechWave 2008, for example, goes beyond this and covers passing XML data to a Web Service. The samples are available in the sandbox of our Web site. A list of links is provided at the end of the article.
OpenLaszlo 4.0
OpenLaszlo is an open source platform for developing and running RIAs. It's backed primarily by the company Laszlo Systems. The programming language is LZX (XML and JavaScript). Applications can either be compiled into a single SWF with some limitations (for example, no Web Services) or to Java servlets that generate the code during runtime on-the-fly. Besides generating a Flash GUI, OpenLaszo supports the generation of DHTML front ends. Development in OpenLaszlo can be done in different IDEs. My favorite is the spket plug-in for Eclipse. However there's no graphical designer for the GUI.
First, I create the application consisting of a window and three tab pages (no intro page). I create a new project and a new file called prognosclient.lzx. I only place one label, field, and help button on the first tab page (see Figure 1). The help button is named that way so that, by passing it to the help Web Service, the appropriate help text is returned. Since I need to display the help information I also create a helpwindow.
As a next step I define the SOAP interface for accessing the Web Service. It consists of a SOAP element referencing the wsdl with the wsdl attribute. For each function of the Web Service a remotecall element has to be defined with an ondata handler that is called when data is returned from the Web Service. In our sample the returned data is shown in the help window. The arguments are passed to the Web Service as XML strings. I create a createHelpXML function that takes as an argument the ID of the help item and returns the XML string to me. The only thing left is calling the help when clicking on the info button. This will be achieved by an onclick handler that calls the createHelpXML and passes it to the Web Service (see Listing 1).
Published November 26, 2008 Reads 3,721
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Arthur Hefti
Arthur Hefti is CEO of CATsoft Development GmbH in Zurich. He has been working with PowerBuilder since version 3 and taught dozens of PowerBuilder training classes. He and his team create custom-made client/server and Web applications using XML, Web Services, and encryption.
- Why SOA Needs Cloud Computing - Part 1
- Cloud Expo and The End of Tech Recession
- The Transition to Cloud Computing: What Does It Mean For You?
- A Rules Engine Built in PowerBuilder
- Sybase Named “Silver Sponsor” of iPhone Developer Summit
- How PowerBuilder Got Its Groove Back
- The Cloud Has Cross-Border Ambitions
- Ulitzer Named "New Media" Partner of Greatly Anticipated iStrategy Event in Berlin
- Risks and Enterprise Mobility?
- Steps for Success in Enterprise Mobility?
- Are Mobile Luddites Resisting Mobility?
- Hot Event in Santa Clara Becomes Cool with the iPhone
- The Difference Between Web Hosting and Cloud Computing
- Sybase CTO to Speak at 4th International Cloud Computing Expo
- Why SOA Needs Cloud Computing - Part 1
- Cloud Expo and The End of Tech Recession
- The Transition to Cloud Computing: What Does It Mean For You?
- Five Reasons to Choose a Private Cloud
- Seeding The Cloud: The Future of Data Management
- The Threat Behind the Firewall
- Economy Drives Adoption of Virtual Lab Technology
- Tips for Efficient PaaS Application Design
- A Rules Engine Built in PowerBuilder
- Sybase Named “Silver Sponsor” of iPhone Developer Summit
- Where Are RIA Technologies Headed in 2008?
- PowerBuilder History - How Did It Evolve?
- The Top 250 Players in the Cloud Computing Ecosystem
- Custom Common Dialogs Using SetWindowsHookEx
- DDDW Tips and Tricks
- OLE - Extending the Capabilities of PowerBuilder
- DataWindow.NET How To: Data Entry Form
- Book Excerpt: Sybase Adaptive Server Anywhere
- Sybase ASE 12.5 Performance and Tuning
- Working with SOA & Web Services in PowerBuilder
- Office 2003 Toolbar: A New Look For Your Old PowerBuilder App
- Dynamically Creating DataWindow Objects
































