|
SYS-CON.TV Webcasts
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Top Links You Must Click On
Cover Story PowerBuilder Cover Story — The DataWindow in PowerBuilder 11 Web Form Targets
Transforming an existing PowerBuilder application into a Web application
By: Frederick Koh; Li, Zhao
Aug. 30, 2007 03:00 PM
PowerBuilder 11 introduces the WebForms target, which lets you transform an existing PowerBuilder application into a Web application with relative ease. While the deployed application will be remarkably faithful to the original client/server deployment in terms of application behavior, the degree of faithfulness is limited by the fact that your application is running as a Web application. The PowerBuilder component where this poses the greatest challenge is the DataWindow.
"New" Features
In client/server applications, the number of rows appearing in a DataWindow is dependent on the size of the control. The FirstRowOnPage and LastRowOnPage properties give you the rows that are actually visible on the page. Scrolling or resizing the DataWindow changes what rows are visible but the DataWindow makes sure that rows are displayed in their entirety - either they're fully visible or they're not visible at all. The vertical scrollbar ranges all retrieved rows (see Figure 1). In a WebForm application DataWindow, a "page" comprises the rows that happen to be on the browser at any given time. It's possible for the page to comprise all retrieved rows, but by default the page size is 20 rows. The page size serves as a way to tweak performance by controlling the amount of data received and rendered by the browser. In Figure 2 the 20 rows can be scrolled, but to view rows outside this batch of 20 the page navigation bar at the bottom of the DataWindow is needed. In a WebForm it's possible to make some rows only partially visible through scrolling or resizing. (The DataWindow in a WebForm application doesn't support the FirstRowOnPage or LastRowOnPage properties.) This is in contrast to the DataWindow in a client/server application where the page by definition is all rows that are visible. Another difference is that the scrollbar doesn't range all retrieved rows, only the rows in the page. The default number of rows per page is configurable through the Configuration tab in the project painter (see Figure 3). However, this setting is application-wide. To set the number of rows per page for a given DataWindow, use the Rows Per Page property accessible through the Web Generation tab of the DataWindow property pages (see Figure 4).
Uses Script Callbacks
The Dropdown DataWindow An option exists to render a dropdown as a true DDDW instead of using the HTML select tag. The technique used to render the dropdown as a DDDW shares data across rows, making it more scaleable (see Figure 5). Setting PBDataWindowEnableDDDW to true in the Configuration tab in the project painter can turn on this option. You can further optimize the rendering of your DDDWs by loading it only on-demand. Using this option, the DDDW isn't sent to the browser when the DataWindow is rendered; it's sent only when the dropdown is clicked. The DDDW is then sent to the browser using the Script Callback mechanism provided by ASP.NET. Setting PBDataWindowScriptCallbackDDDW to true in the Configuration tab in the project painter can turn this option on.
Sharing Read-only DataWindow Data Across Sessions
Sharing the Data of Primary, Delete, and Filter Buffers
Restrictions on DataWindows Shared Across Sessions
Sharing the Data of DropDown DataWindows
Restrictions on DataWindowChild Object References to DropDown DataWindows Shared Across Sessions
Reader Feedback: Page 1 of 1
Enterprise Open Source Magazine Latest Stories . . .
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||