Distributing resources – PB Docs 105
Distributing resources You can choose to distribute your resources (pictures, pointers, and icons) separately or include them in your executable file or dynamic library. Distributing resources separately When a resource is referenced at runtime, if the resource has not been included in the executable file or in a dynamic library, PowerBuilder looks for it in…
Modifying structures – PB Docs 105
Modifying structures To modify a structure: Do one of the following: In the Open dialog box, select the global structure you want to modify. Open the painter for the object that contains the object-level structure and select the structure from the Structure List view. If the Structure List view is not open, select it from…
Searching targets, libraries, and objects – PB Docs 105
Searching targets, libraries, and objects Global search of targets You can search a target to locate where a specified text string is used. For example, you could search for: All scripts that use the SetTransObject function All windows that contain the CommandButton cb_exit (all controls contained in a window are listed in the window definition’s…
Creating a new TreeView DataWindow – PB Docs 105
Creating a new TreeView DataWindow You use the TreeView wizard and the DataWindow painter to create a TreeView DataWindow. TreeView creation process A TreeView DataWindow has multiple levels, each of which is a node in the TreeView. You use the TreeView wizard to create a TreeView DataWindow, but the wizard produces a DataWindow that includes…
Chapter 8 Working with User-Defined Functions – PB Docs 105
Chapter 8 Working with User-Defined Functions About this chapter This chapter describes how to build and use user-defined functions. Contents Topic About user-defined functions Defining user-defined functions Modifying user-defined functions Using your functions Document get from Powerbuilder help Thank you for watching.
Exporting to XML – PB Docs 105
Exporting to XML You can export the data in a DataWindow object or DataStore object to XML using any of the techniques used for exporting to other formats such as PSR or HTML: Using the SaveAs method:
1 |
ds_1.SaveAs("C:TEMPTemp.xml", Xml!, true) |
Using PowerScript dot notation or the Describe method:
1 |
ls_xmlstring = dw_1.Object.DataWindow.Data.XML |
1 |
ls_xmlstring = dw_1.Describe(DataWindow.Data.XML) |
Using the Save Rows As menu item in…
Specifying updatable columns – PB Docs 105
Specifying updatable columns You can make all or some of the columns in a table updatable. Updatable columns are displayed highlighted. Click a nonupdatable column to make it updatable. Click an updatable column to make it nonupdatable. Changing tab values If you have changed the updatability of a column, you should change its tab value….
Saving data in an external file – PB Docs 105
Saving data in an external file While previewing, you can save the data retrieved in an external file. Note that the data and headers (if specified) are saved. Information in the footer or summary bands is not saved unless you are saving as PDF or as a PSR file. To save the data in a…
Defining a code table – PB Docs 105
Defining a code table To reduce storage needs, frequently you might want to store short, encoded values in the database, but these encoded values might not be meaningful to users. To make DataWindow objects easy to use, you can define code tables. Each row in a code table is a pair of corresponding values: a…
Using graphs in windows – PB Docs 105
Using graphs in windows In addition to using graphs in DataWindow objects, you can also place graphs directly in windows and visual user objects. You define properties for a graph control in the Window painter and use scripts to populate the graph with data and to modify properties for the graph at runtime. This section…