2
The DataWindow object is the cornerstone of PowerBuilder application
development. PowerBuilder apps are largely designed around accessing
databases, typically for CRUD (Create, Read, Update, Delete) operations.
In fact, most business applications—especially legacy client/server applications—
are forms over data: screens contain a host of data-bound controls designed
to build queries against database tables, return results, and allow for CRUD
updates.
For example, a fairly typical screen for this kind of application might look like this
one:
In this screen—from Mobilize.Net's demo app (Salmon King Seafood)—we have
some text elds for entering search strings, a grid control that returns the
results of a SQL query built from the text box values, another grid control, some
calculated elds displayed as text boxes, and a couple of command buttons. Very
typical.
PowerBuilder was a tool designed to build these kinds of apps quickly and easily,
using an approach that today is known as "low code." With PowerBuilder, you
created windows (forms) with controls and set properties on those controls.
This, in itself, was no different from VB6. But PowerBuilder took the concept as far
as possible, particularly in the use of DataWindows.