Martin Heller
Contributing Writer

New Sybase PowerBuilder 12 requires little coding

analysis
Sep 7, 20092 mins

Sophisticated DataWindow works on WPF, Windows Forms, and ASP.Net

As InfoWorld’s Paul Krill reported in mid-August, Sybase is beta-testing PowerBuilder 12, which features a rewritten PowerBuilder DataWindow technology that offers native support of Microsoft’s WPF (Windows Presentation Foundation), Windows Forms, and Web Forms (ASP.Net). I alluded to the new DataWindow briefly when I wrote about Alpha Five V10: “The centerpiece of the system is a data grid with more flexibility than I’ve seen in any other grid, with the possible exception of the PowerBuilder DataWindow.”

I’ve been waiting until I had some samples that illustrated the power of the DataWindow — that took a few weeks only because the PowerBuilder folks have been traveling and I haven’t had a chance to join the PowerBuilder 12 beta program.

[ Keep up with app dev issues and trends with InfoWorld’s Fatal Exception and Strategic Developer. ]

The upper screen shot, illustrating a parent/child/grandchild data relationship, required:

  • 1 line of code for each of the three DataWindows to retrieve
  • 1 line of code for each of the two detail DataWindows to persist changes to the database
  • 1 line of code to reset the Order Detail DataWindow when a newly selected Customer or Order makes its result set invalid
  • 6 lines of code total, plus 6 additional lines of code to establish the connection to the database
MasterDetailDetail DataWindow 02 sm.png

The lower screen shot, illustrating an updateable TreeView presentation style DataWindow with a grid-style hybridization, required:

  • 1 line of code to retrieve the result set from the database
  • 1 line of code to persist the user modifications to the database
  • 6 additional lines of code to establish the connection to the database
Updateable Grid TreeView DataWindow 01 sm.png

Click on either image to see a full-size version.

Martin Heller

Martin Heller is a contributing writer at InfoWorld. Formerly a web and Windows programming consultant, he developed databases, software, and websites from his office in Andover, Massachusetts, from 1986 to 2010. From 2010 to August of 2012, Martin was vice president of technology and education at Alpha Software. From March 2013 to January 2014, he was chairman of Tubifi, maker of a cloud-based video editor, having previously served as CEO.

Martin is the author or co-author of nearly a dozen PC software packages and half a dozen Web applications. He is also the author of several books on Windows programming. As a consultant, Martin has worked with companies of all sizes to design, develop, improve, and/or debug Windows, web, and database applications, and has performed strategic business consulting for high-tech corporations ranging from tiny to Fortune 100 and from local to multinational.

Martin’s specialties include programming languages C++, Python, C#, JavaScript, and SQL, and databases PostgreSQL, MySQL, Microsoft SQL Server, Oracle Database, Google Cloud Spanner, CockroachDB, MongoDB, Cassandra, and Couchbase. He writes about software development, data management, analytics, AI, and machine learning, contributing technology analyses, explainers, how-to articles, and hands-on reviews of software development tools, data platforms, AI models, machine learning libraries, and much more.

More from this author