Detail section – PB Docs 125
Detail section The Detail section contains the rendering of the DataWindow Detail band, delimited by the first <div> element. The <div> element’s contents represent a single row instance to be generated iteratively. Any group trailers, summary band, and footer band are also appended and enclosed by <div> elements. The controls rendered in the Detail section…
DataWindow expressions – PB Docs 125
DataWindow expressions Adding a DataWindow expression using the Add Child>DataWindow Control Reference menu item opens the Modify Expression dialog box. This enables you to create references to columns from the data source of the DataWindow object. It also enables the calling of global functions. One use of this feature is to return a fragment of…
Defining a service class for PowerBuilder components – PB Docs 125
Defining a service class for PowerBuilder components To create and register a service class for PowerBuilder components: In the PBL that contains the DataWindow object for the server component, define one or more PowerBuilder custom class user objects. In each custom class user object, define one or more user-defined events. The event signatures must match…
Element attributes – PB Docs 125
Element attributes Select Edit Attributes from the pop-up menu for elements to edit an existing attribute or add a new one. The attributes that display include all the default attributes for the elements with any template changes applied. The name attribute (and in some cases the class attribute) used to identify the element is omitted…
Style declarations – PB Docs 125
Style declarations If you right-click an element and select Edit Styles from the pop-up menu, the Style Declarations dialog box displays the read-only set of default style declarations for the element on the left: For clarity, style declarations are omitted from the XHTML export template. You can add new style declarations or override the existing…
JavaScript event handlers – PB Docs 125
JavaScript event handlers If you right-click an element and select Edit Events from the pop-up menu, the JavaScript Event Handlers dialog box displays a read-only set of event handlers for the element on the left: This dialog displays the current JavaScript event handlers, if any. You can add new event handlers or override the existing…
Element Context Menus – PB Docs 125
Element Context Menus The tree view in the Export Template view for XHTML represents a real-time DOM tree. Each XHTML element of the tree in the Header and Detail sections has a pop-up menu. The pop-up menu items perform DOM-based actions for modifying the structural layout of the XHTML document that will be generated. The…
Selecting XHTML export templates at runtime – PB Docs 125
Selecting XHTML export templates at runtime Two DataWindow properties, Export.XHTML.TemplateCount and Export.XHTML.Template[ ].Name, enable you to provide a list of templates from which the user of the application can select at runtime. The TemplateCount property gets the number of templates associated with a DataWindow object. You can use this number as the upper limit in…
DataWindow controls – PB Docs 125
DataWindow controls Adding a DataWindow control reference opens a dialog box containing a list of the columns, computed fields, report controls, and text controls in the document. Control references can also be added to empty attribute values or element contents using drag and drop from the Control List view. Column references can also be added…
Editing XHTML export templates – PB Docs 125
Editing XHTML export templates Every item in the Export Template view for XHTML has a pop-up menu for modifying the structural layout of the XHTML document that will be generated at runtime. Using the pop-up menu, you can perform actions appropriate to that item, such as editing or deleting the item, adding or editing attributes,…