Filtering the display of objects

You can change what objects display in expanded libraries.

NoteSettings are remembered PowerBuilder records your preferences in the Library section of the PowerBuilder initialization file so that the next time you open the Library painter, the same information is displayed.

Specifying which objects display in all libraries

In the Tree and List views, the Library painter displays all objects in libraries that you expand, as well as targets, workspaces, folders, and files. You can specify that the Library painter display only specific kinds of objects and/or objects whose names match a specific pattern. For example, you can limit the display to only DataWindow objects, or limit the display to windows that begin with w_emp.

StepsTo restrict which objects are displayed:

  1. Select Design>Options from the menu bar and select the Include tab.

  2. Specify the display criteria:

    • To limit the display to entries that contain specific text in their names, enter the text in the Name box. You can use the wildcard characters question mark (?) and asterisk (*) in the string. The ? represents one character; an * represents any string of characters. The default is all entries of the selected types.

    • To limit the display to specific entry types, clear the check boxes for the entry types that you do not want to display. The default is all entries.

  3. Click OK.

    The Options dialog box closes.

  4. In the Tree view, expand libraries or select a library to display the objects that meet the criteria.

Overriding the choices you made for a specific view

In either the Tree view or the List view, you can override your choice of objects that display in all libraries by selecting a library, displaying the library’s pop-up menu, and then clearing or selecting items on the list of objects.