Describe How The Datawindow Export Engine Functions in PowerBuilder 9
Lesson: (5 of 5) Graphic DataWindows and XML DataWindows
The PowerBuilder DataWindow object is one of the main reasons for the success that PowerBuilder has achieved as a software development tool. In this course, you'll learn some of the primary methods used to generate rich graphic user interfaces. You'll learn to draw simple shapes, moving images within a DataWindow and from one DataWindow to another, and using metadata to control large numbers of graphic objects on a DataWindow.
Learn how to create and manipulate a rectangle. This requires the creation of three mapped custom events on the DataWindow: uo_lbd is mapped to pbm_lbuttondown, uo_mm to pbm_mousemove, and uo_lbu to pbm_lbuttonup. Learn how to move images within DataWindows. To do this, you set the movable property, .movable=1, and the object can be moved with the mouse. Three custom DataWindow events are used to respond to mouse actions: uo_lbd is mapped to pbm_lbuttondown, uo_mm to pbm_mousemove, and uo_lbu to pbm_lbuttonup. Learn how to move images from one DataWindow to another. This requires the use of a descendant of the picture object. A descendant is used to create instance variables to hold data from the copied DataWindow object. This process is initiated with a oe_lbd event. Learn how to create and control multiple objects within a DataWindow using metadata. Metadata is data about data. Metadata columns within the DataWindow can control the visual properties of individual objects. Within a row, all object properties have access to all data in all columns allowing you to store visual property data for multiple objects within a single data column. You learned how to create columns to control visual properties. Learn how to store each property for all objects in a string DataWindow column. This method allows you to store a property for multiple objects in one DataWindow column. The flexibility and efficiency this method gives you allows you to create up to 1,000 objects in one column.
Learn that negative values can be used on DataWindow objects. Assigning negative numbers to property expressions allows you to display a portion of a DataWindow object in a row or make an object appear as if it exists between two rows. Learn that XML, Extensible Markup Language, is becoming the de facto standard for delivery of structured data on the Web. A subset of SGML, XML is used to describe data within the PowerBuilder DataWindow. Learn about the DataWindow Export Engine, a new component of the DataWindow engine. It uses export templates to export row data into XML format. Learn how DataWindow objects are used in export templates and how they are mapped. Learn how the DataWindow Export Engine analyzes the XML Template.
Learn how to use the DataWindow painter to define and edit XML export templates. Within the painter, you use the XML Export Template view. You learned that this view contains a TreeView control to represent the structure of an export template. Learn how to use the Export Template Detail section and how to mark a Detail Start element. Learn how to map DataWindow elements to XML nodes from the control list painter view and from a dialog box. Learn how to export data in a DataWindow or DataStore object to XML. This can be done using PowerScript dot notation, PowerScript Describe notation, the SaveAs() Method or the Save Rows As menu item in the DataWindow painter. Learn about several DataWindow properties that are used to fine-tune the generation of XML from DataWindow data. The properties can be selected at design time via a drop-down list box or check box. PowerScript dot notation and PowerScript Modify notation are used at runtime.
Learn how to import the content of an XML document into a DataWindow or DataStore. You learned how to use the ImportFile() method, ImportString() method and ImportClipboard() method. Learn about the Import.XML.UseTemplate and Import.XML.Trace properties and how they are used to fine-tune the populating of a DataWindow.
Our Graphic DataWindows and XML DataWindows lesson, in our PowerBuilder 9 Advanced Development course will show you how to Describe how the DataWindow Export Engine functions.
The course shows learners how to create graphical interfaces with DataWindows and how to import and export XML into DataWindows.
This interactive course is for developers who know and use PowerBuilder who want to learn the new features of PowerBuilder 9, enhancing their ability to build client/server applications.
Drawing simple shapes, Moving images among DataWindows, Creating rich graphical DataWindows, Manipulating metadata, Understanding XML, XML parsers, The DataWindow export engine, Export templates, Exporting XML, Importing XML.
This course describes the changes and additions learners will encounter when they move from earlier versions to PowerBuilder 9. It addresses the use of tools such as OrcaScript, InfoMaker, and DataWindows.
Did You Know?
You can click the 'Course Topics' in the upper left corner of the window to view the topics covered in a course. learn more...