PowerBuilder 2017 – Introducción
Duration: 3 Days Goals: Development of a complete MDI application using a Database Pre-requirements: OO programming
Introduction
– The PB 2017 IDE – Workspace and a Target – Application object – Powerscript, events, variables – Run the HelloWorld application
Windows
– Create a window and add visual controls – Control properties – Types of windows
Menu
– Menu and sub-items, toolbars, menu types and menu scripting – Dynamic call to window events from the menu object
Database
– DB connection types, ODBC vs native drivers – DB painter, DVB profile and Powerscript syntax – The Transaction object
Datawindow
– Create a DW object, presentation styles and data preview – Retrieval arguments and SQL source – Server-side and client-side operations – Computed fields – Buffers – Static/Dynamic binding of dataobject to DW controls
Inheritance
– Inheritance in PB – Build a base window, insert a DW control and define user events – Inherit a new window and add controls and scripts
Additional concepts
– Visual and non-visual UO, dynamic creation
PB Debugger
– Run the application in Debug mode and set Breakpoints – Step in / Step over, Variable watch, Conditional breakpoints
Distribution of the Application
– Application deployment – PB Dynamic Library vs DLL – PB Runtime DLL