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…
Server-Side Processing for the Web DataWindow – PB Docs 125
Server-Side Processing for the Web DataWindow About this chapter This chapter describes configuration requirements for the server-side Web DataWindow component and design and programming techniques. Contents Topic Server configuration requirements Instantiating and configuring the server component Using a custom server component Using service classes Document get from Powerbuilder help Thank you for watching.
Exporting the DataWindow in XML and XSLT or in XHTML – PB Docs 125
Exporting the DataWindow in XML and XSLT or in XHTML Exporting in XML and XSLT You can export the DataWindow or DataStore object in XML and XSLT using PowerScript dot notation or the Describe method:
|
1 |
ls_xmlstring = dw_1.Object.DataWindow.Data.XMLWeb<br>ls_xmlstring = dw_1.Describe("DataWindow.Data.XMLWeb") |
When you export the DataWindow or DataStore object, PowerBuilder uses an export template to specify the content of the…
Creating and saving templates – PB Docs 125
Creating and saving templates Creating a new default template To create a new default XHTML export template, select New Default from the pop-up menu in the Export Template view for XHTML. A new default XHTML export template has the following elements: Elements Name defaults to Root <form> DataWindow name_dataForm Header <div> DataWindow name_band1 Detail <div>…
Selecting the template to use – PB Docs 125
Selecting the template to use Using the Export.XHTML.UseTemplate property The Data Export page in the Properties view lets you set properties for exporting data in XHTML. The names of all templates that you create and save for the current DataWindow object display in the Use Template drop-down list. In addition to the properties that you…
Template structure – PB Docs 125
Template structure An XHTML export template has a Header section and a Detail section separated graphically by a line across the tree view. Other DataWindow bands are incorporated into these sections. The Detail Start element A line across the Export/Import Template view separates the Header section from the Detail section. The first element after this…
About using DataWindow objects – PB Docs 125
About using DataWindow objects Building DataWindow objects Before you can use a DataWindow object in an application, you need to build it. PowerBuilder has separate painters for database management, DataWindow definition, and library management. You define and edit a DataWindow object in the DataWindow painter. You specify its data source and presentation style, then enhance…
Creating a custom server component in EAServer – PB Docs 125
Creating a custom server component in EAServer You can install and configure a custom Web DataWindow server component in EAServer Manager. In this procedure, you create a custom version of the EAServer server component with custom properties preset in EAServer Manager. Using the Web DataWindow Container Project wizard The procedure in this section describes how…
Instantiating the custom component – PB Docs 125
Instantiating the custom component To use the custom component in your server-side scripts, you specify your package and component name in the form YourPackage/YourComponent. If you are using methods of the generic component installed with EAServer, you must use the narrow method on the generic component helper class to reference the DataWindow/HTMLGenerator125 interface. The following…
Maintaining state on the server – PB Docs 125
Maintaining state on the server Using a stateless component The Web DataWindow can run in a fully stateless server environment. Variables in the Web page keep information about the rows being viewed and any changes the user makes; this information is communicated to the server component as needed so that the component can restore its…