JavaScript event handlers – PB Docs 126
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…
Maintaining state on the server – PB Docs 126
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…
Template structure – PB Docs 126
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…
Creating a custom server component in EAServer – PB Docs 126
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…
Creating and saving templates – PB Docs 126
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>…
Loading the DataWindow object – PB Docs 126
Loading the DataWindow object SetDWObject The next step is to specify the PBD or PBL file that contains the DataWindow object and the name of the DataWindow object. You do not need to specify the location of the file, but it must be available on the component server in a directory on the server’s path…
Solutions for client/server and distributed applications – PB Docs 126
Solutions for client/server and distributed applications The PowerBuilder DataWindow was initially developed for use in client/server applications. You can implement the PowerBuilder DataWindow as a control that displays a DataWindow object or as a DataStore that supports data retrieval and update without displaying the data. A complete set of events and methods programmed in PowerScript…
Using expressions – PB Docs 126
Using expressions In general, expressions for validation rules and computed fields are translated into JavaScript and evaluated in the client browser. For validation of data entry, the user gets immediate feedback on the new data. Some expressions have to be evaluated on the server. This might be because the evaluation involves all the rows, rather…
DataWindow Expression Functions – PB Docs 126
DataWindow Expression Functions About this chapter This chapter provides syntax, descriptions, and examples of the functions you can use in expressions in the DataWindow painter. Contents Topic Using DataWindow expression functions Decimal support in DataWindow expressions Four examples Alphabetical list of DataWindow expression functions Document get from Powerbuilder help Thank you for watching.
Modifying colors, fill patterns, and other data – PB Docs 126
Modifying colors, fill patterns, and other data PowerBuilder The following methods allow you to modify the appearance of data in a graph: Table 5-5: PowerBuilder methods for modifying the appearance of data Method Action ResetDataColors Resets the color for a specific data point SetDataLabelling Specifies the display setting for a data label in a DirectX…