# Webster+ Inspector

> Source: https://manual.pvxplus.com/webster/inspector

The **Webster+ Inspector** page displays the contents of the directory that contains your Webster+ installation (defaults to the *docroot* directory). It provides options for viewing, creating, editing and deleting files and directories.

When the security system in Webster+ is enabled, a new **Inspector** option displays on the left side. Clicking the **Inspector** option brings up the **Webster+ Inspector** page if the user is allowed to access it. Only users who are part of the *Admin* group (System Administrators) or the *Dev* group (Application Developers) are allowed to access the **Webster+ Inspector** page.

![](https://manual.pvxplus.com/migration-assets/2266e367adf2671d331c61986d1e5d39541118a5b651a3e88fe3f8f7b68348e9.jpg)

***Opening a File or Directory***

Click on the file or directory to select it and then click the *Explore* button. This opens the file in view-only mode or displays a list of the files in the directory. Double clicking on a file or directory does not open it.

***Opening a Screen Library***

First, open the directory where the screen library is located. Then, click on the screen library to select it and then click the *Explore* button. This opens the **Webster+ Library Object Selection** page, which displays a list of the objects in the selected screen library (similar to **[NOMADS Library Object Selection](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/console-and-object-list)**).

For information on working with screen libraries within Webster+, see **[Viewing Screen Libraries](https://manual.pvxplus.com/webster/inspector#view_libs)**.

*(The Webster+ Library Object Selection page was added in PxPlus 2024.)*

***Using Webster+ Inspector***

The ability to edit text files, program files, HTML files or screen libraries depends on whether the user is part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option. PxPlus data files can only be viewed, not edited, within Webster+.

For information on working with text files, data files, report definition files (*\*.pvr*), and PDF files within Webster+, see **[Viewing Text Files, Data Files, Report Files and PDFs](https://manual.pvxplus.com/webster/inspector#view_text)**.

For information on working with program files and HTML files within Webster+, see **[Viewing Program Files](https://manual.pvxplus.com/webster/inspector#view_pgm)** and **[Viewing HTML Files](https://manual.pvxplus.com/webster/inspector#view_html)**.

*(The ability to view, create, edit and delete files and directories through Webster+ Inspector was added in PxPlus 2021 Update 1.)*

The **Webster+ Inspector** page consists of the following:

|  |  |
| --- | --- |
| *Directory* | When the **Inspector** option is selected, the directory defaults to the *docroot* directory where *webster.pxp* was installed. Enter a different directory or click the *Up* button to change to a directory one level up.<br>To set the top level directory, see **[Setting the Top Level Directory](https://manual.pvxplus.com/webster/inspector#topdir)**. |
| *Explore* | Opens the selected file in view-only mode or displays a list of the files in the selected directory. |
| *Up* | Changes to a directory one level up. |
| *Refresh* | Refreshes the list of files in the selected directory. |
| *New Text* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Invokes the **New Text File** window for creating a new text file using the Text editor within Webster+.<br>The types of text files that can be created are ".txt", ".js", ".json", ".css", ".csv", ".conf", ".ini", ".log" and ".xml". When naming a new text file, the file extension needs to be included so that Webster+ will recognize the file type and open it.<br>*(The New Text button was added in PxPlus 2022.)* |
| *New Program* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Invokes the **New Program** window for creating a new program file using the ED+ program editor within Webster+. |
| *New HTML* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Invokes the **New HTML File** window for creating a new HTML file using the HTML editor within Webster+. |
| *New Directory* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Invokes the **New Directory** window for creating a new directory. |
| *Delete* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Deletes the selected file or directory. Prior to deleting, a message will display. |
| *Print* | Prints a listing of the selected directory contents to the viewer. |
| *(Files List)* | Displays details about the files in the selected directory, including file size, creation date and last modified date. |

## Viewing Text Files, Data Files, Report Files and PDFs

Text files can be viewed and edited within Webster+. See **[Example: Text File](https://manual.pvxplus.com/webster/inspector#ex_text)**.

PxPlus data files, however, can only be viewed, not edited. When a data file is opened, the records (sorted by prime key) and the prime key definition are displayed. The **[File Info](https://manual.pvxplus.com/webster/inspector#file_info)** button allows you to view detailed data dictionary information, if applicable. See **[Example: Data File](https://manual.pvxplus.com/webster/inspector#ex_data)**.

When a report definition file (*\*.pvr*) is opened, it is opened as a text file, which can be viewed and edited within Webster+. See **[Example: Report File](https://manual.pvxplus.com/webster/inspector#ex_report)**. The **[Generate Report](https://manual.pvxplus.com/webster/inspector#generate)** button generates the report based on the report definition (\**.pvr*) file, and if applicable, allows you to specify the parameters and/or filter criteria to be applied to the report at run time.

PDF files can be viewed within Webster+. When a PDF file is opened, its contents are displayed in a new tab on the Web browser.

*(The ability to create text files, view data files and open PDFs was added in PxPlus 2022.)  
(The ability to view, edit, filter and generate reports was added in PxPlus 2022 Update 1.)*

***Example:* Text File**

This example shows a text file (Clients_List.txt) opened in view-only mode:

![](https://manual.pvxplus.com/migration-assets/b6ddb7c60e98c8a7832ddf87ab82319f75480e573f1067d955a0274f418df8b2.jpg)

***Example:* Data File**

This example shows a PxPlus data file (clients) opened in view-only mode with navigation buttons shown (when applicable) near the bottom:

![](https://manual.pvxplus.com/migration-assets/5989d6d1f9c8a3fd72b66bbebb2f8cef29fc4aa8ad2f35fdaa0e55763ae7a41d.jpg)

***Example:* Report File**

This example shows a PxPlus report file (Salesrep List.pvr) opened as a text file in view-only mode:

![](https://manual.pvxplus.com/migration-assets/8f4113052d5aae9355e946700f03d4bd51ca8c016d998783215bb5e692dca670.jpg)

This page consists of the following:

|  |  |
| --- | --- |
| *Close* | Closes the contents page and returns to the **Webster+ Inspector** page. |
| *Refresh* | Refreshes the contents of the displayed text file, data file or report file. |
| *Edit* | ***(Applicable for Text Files and Report Files Only)***<br>This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Clicking this button opens the selected text file or report (.*pvr*) file in the Text editor within Webster+:<br>![](https://manual.pvxplus.com/migration-assets/042fa758181d3726a71431b9a7e025a79db402c0054b04193f4509b0d64ffa2d.png)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Save* \| Writes the current text file. \|<br>\| *Save As* \| Invokes a separate window for entering the text file/path name to be written. \|<br>\| *New* \| Invokes a separate window for creating a new text file. \|<br>\| *Close* \| Closes the current text file. If you have made changes to the file without saving them, you are asked if you want to save the changes. \|<br>\| *Undo* \| Reverse the last change(s). \|<br>\| *Redo* \| Reverses the previous Undo operation. \|<br>\| *Goto* \| Invokes a separate window for entering a specific line number to jump to in the program. Clicking the *Jump* button positions the insertion cursor at the beginning of the specified line. \|<br>\| *Find* \| Invokes the logic to search for a specified text value. Click the up/down arrows to search for the previous/next occurrence of this text.<br>A *Regexp* check box option is available if the search text is a regular expression.<br>A *Match Case* option is also available if the search is case sensitive.<br>A *Whole Word* option is used to search for the specified text value as a whole word only rather than as part of another word. \|<br>\| *Replace* \| Invokes the logic to search for and replace the specified text value.<br>Enter the text value to be replaced and then below that, enter the replacement text value. Click the up/down arrows to search for the previous/next occurrence of the text to be replaced.<br>A *Regexp* check box option is available if the text to be replaced is a regular expression.<br>A *Match Case* option is also available if the search is case sensitive.<br>A *Whole Word* option is used to search for the specified text value as a whole word only rather than as part of another word. \| |
| *File Info* | ***(Applicable for PxPlus Data Files Only)***<br>Opens a PxPlus Wiki page in a new tab on the Web browser that shows detailed data dictionary information. If a data class was used to define a field, the class name shows as a link that can be selected to view the data class information.<br>***Example:***<br>![](https://manual.pvxplus.com/migration-assets/40d7fe6b44d99a0064d73d0eed24d07d9ac3cb5686a527fc1236a9510d33532c.png) |
| *Generate Report* | ***(Applicable for Report Files Only)***<br>Generates the report based on the report definition (\**.pvr*) file. If a report was defined with parameters and/or data filters, a page will display to allow you to specify the parameters and/or filter criteria to be applied to the report at run time.<br>***Example:***<br>The report for this example was defined with both parameters and run-time filters:<br>![](https://manual.pvxplus.com/migration-assets/c14e5b8094637c15073dbdf8e2a5cd5ae9c282c1e1a60caa384b0ee241056866.png)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Report Parameters  <br>Run-time Filters* \| Displays any report parameters and/or run-time filters that were defined for the report, if applicable. \|<br>\| *Run Report* \| Displays the report in a new tab on the Web browser, applying any filter criteria. \|<br>\| *Cancel Report* \| Closes this page, cancelling any selections, and returns to the report's contents page. \|<br>*(The Generate Report button was added in PxPlus 2022 Update 1.)* |
| *Print* | Prints a listing of the selected text file, report file or data file contents to the viewer. |

## Viewing Program Files

This example shows a program file (gl_account.pvc) opened in view-only mode:

![](https://manual.pvxplus.com/migration-assets/74eb9e709d07ddeccb8fbdb9f01764f2492ccd34a38ebc36261ec32f623de919.jpg)

This page consists of the following:

|  |  |
| --- | --- |
| *Close* | Closes the contents page and returns to the **Webster+ Inspector** page. |
| *Refresh* | Refreshes the displayed program file contents. |
| *Edit* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Clicking this button opens the file in the ED+ program editor within Webster+:<br>![](https://manual.pvxplus.com/migration-assets/5c3e3f37521c2ed57970c9e7108084927c12ff944fafd8d44fcc760192f19578.png)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Save* \| Saves the current program file. \|<br>\| *Save As* \| Allows you to name and save the current program file. \|<br>\| *New* \| Invokes a separate window for creating a new program file. \|<br>\| *Close* \| Closes the current program file. If you have made changes to the program without saving them, you are asked if you want to save the changes. \|<br>\| *Undo* \| Reverses a change. \|<br>\| *Redo* \| Reverses the previous *Undo* operation. \|<br>\| *Strip Lines* \| Strips line numbers from a program that currently has line numbers.<br>All line number references will be replaced with statement labels or \*same or \*next logical statement labels where applicable. You are prompted for a label prefix that will be used for the base label name for any labels that must be generated. \|<br>\| *Reformat* \| Reorganizes the lines of code for the current program by applying proper formatting for indentation, if applicable. \|<br>\| *Goto* \| Invokes a separate window for entering a specific line number to jump to in the program. Clicking the *Jump* button positions the insertion cursor at the beginning of the specified line. \|<br>\| *Find* \| Invokes the logic to search for a specified text value. Click the up/down arrows to search for the previous/next occurrence of this text.<br>A *Regexp* check box option is available if the search text is a regular expression.<br>A *Match Case* option is also available if the search is case sensitive.<br>A *Whole Word* option is used to search for the specified text value as a whole word only rather than as part of another word. \|<br>\| *Replace* \| Invokes the logic to search for and replace the specified text value.<br>Enter the text value to be replaced and then below that, enter the replacement text value. Click the up/down arrows to search for the previous/next occurrence of the text to be replaced.<br>A *Regexp* check box option is available if the text to be replaced is a regular expression.<br>A *Match Case* option is also available if the search is case sensitive.<br>A *Whole Word* option is used to search for the specified text value as a whole word only rather than as part of another word. \|<br>\| *Bookmarks* \| Provides a list of the file's methods and labels for quick access to a specific part of the file. Use the vertical scroll bar to locate the method or label you want to modify and then click on that bookmark to jump directly to that location in the file. \| |
| *Print* | Prints a listing of the selected program file contents to the viewer. |

## Viewing HTML Files

This example shows an HTML file (salespersons.html) opened in view-only mode:

![](https://manual.pvxplus.com/migration-assets/af9dd025ca9e976e3dbebe40aafc809f69827bc08dd1330e05b29bba162dc7ac.jpg)

This page consists of the following:

|  |  |
| --- | --- |
| *Close* | Closes the contents page and returns to the **Webster+ Inspector** page. |
| *Refresh* | Refreshes the displayed HTML file contents. |
| *Edit* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Clicking this button opens the file in the HTML editor within Webster+:<br>![](https://manual.pvxplus.com/migration-assets/bfc7bb957a49bd3dced4bbe4b6a4c22199181c6cff13400468da553be7c44b6a.png)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Save* \| Writes the current HTML file. \|<br>\| *Save As* \| Invokes a separate window for entering the HTML file/path name to be written. \|<br>\| *New* \| Invokes a separate window for creating a new HTML file. \|<br>\| *Close* \| Closes the current HTML file. If you have made changes to the file without saving them, you are asked if you want to save the changes. \|<br>For an explanation of the HTML editor menu bar and tool bar options, see **[Menu Bar Options](https://manual.pvxplus.com/html-editor#Mark1)** and **[Tool Bar Options](https://manual.pvxplus.com/html-editor#Mark11)**. |
| *Preview* | Opens the selected HTML file in a new tab in your browser. |
| *Print* | Prints a listing of the selected HTML file contents to the viewer. |

## Viewing Screen Libraries

This example shows the **Webster+ Library Object Selection** page for the selected screen library (scrnlib.en):

![](https://manual.pvxplus.com/migration-assets/84a8b716efd4691340a8c5e0f672fd9939a3e89e0935c9ac18a078959dc6016a.png)

*(The Webster+ Library Object Selection page was added in PxPlus 2024.)*

This page consists of the following:

|  |  |
| --- | --- |
| *Open* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>In addition, this button is only available if the **[iNomads URL/port](https://manual.pvxplus.com/webster/general-configuration#inomadsurl)** setting is specified; otherwise, this button does not display. To access this setting, click the **Setup** option on the left side to bring up the **System Configuration** page. Then, click the **Misc.** tab.<br>Click this button to open the selected library object for editing.<br>If the object is a Window (*Type* = W), a message will display, advising you to use NOMADS to edit the screen. This message also displays if the object is a Dialog (*Type* = D) and is not a File Maintenance panel (i.e. *By* field does not indicate "File Maint."). If the Dialog (*Type* D or Dh) is a File Maintenance panel, the **[File Maintenance Generator](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/fmgen-introduction)** will be launched via iNomads for the selected panel.<br>If the object is a Standard Query (*Type* = Q) or a Query List (*Type* = q), the Query (or Query List) Definition will be launched via iNomads for the selected query.<br>If the object is a Menu Bar (*Type* = P) or Popup Menu (*Type* = P), the Menu Definition will be launched via iNomads for the selected menu. |
| *Refresh* | Refreshes the **Library Object Selection** page. |
| *Copy* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Copies the selected library object. When prompted, enter a name for the copy.<br>Note:  <br>When a [File Maintenance](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/fmgen-introduction) panel with a Webster+ HTML page (object [Type](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/console-and-object-list#type) "Dh") is copied, the HTML page will not be copied. |
| *Delete* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>Deletes the selected library object. Prior to deleting, a message will display. |
| *Test* | Tests the selected library object.<br>If the object is a Window (*Type* = W), the window will launch via iNomads if the **[iNomads URL/Port](https://manual.pvxplus.com/webster/general-configuration#inomadsurl)** setting was specified; otherwise, an error message will display.<br>If the object is a Dialog (*Type* = D) and is not a File Maintenance panel (i.e. *By* field does not indicate "File Maint."), the dialog will launch via iNomads if the *iNomads URL/Port* setting was specified; otherwise, an error message will display. If the Dialog is a File Maintenance panel and an HTML version of the panel also exists (i.e. Dialog *Type* = Dh), the Webster+ HTML page will be launched.<br>If the object is a Standard Query (*Type* = Q) or a Query List (*Type* = q), the query will be launched. The *Print* and *Download* buttons on the Webster+ query page can be used to print the query data to the viewer or download it to a .CSV file.<br>If the object is a Menu Bar (*Type* = P) or Popup Menu (*Type* = P), a message will display, indicating that testing menus is not supported.<br>*(The query page Print and Download buttons were added in PxPlus 2024.)* |
| *New Query* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>In addition, this button is only available if the **[iNomads URL/port](https://manual.pvxplus.com/webster/general-configuration#inomadsurl)** setting is specified; otherwise, this button does not display. To access this setting, click the **Setup** option on the left side to bring up the **System Configuration** page. Then, click the **Misc.** tab.<br>Click this button to create a new query. When prompted, enter a name for the new query, and then select a **[Query Type](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/defining-a-query#type)**, either *Standard Query* or *Query List*. Another window launches via iNomads for defining the Query (or Query List). |
| *New Menu* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>In addition, this button is only available if the **[iNomads URL/port](https://manual.pvxplus.com/webster/general-configuration#inomadsurl)** setting is specified; otherwise, this button does not display. To access this setting, click the **Setup** option on the left side to bring up the **System Configuration** page. Then, click the **Misc.** tab.<br>Click this button to create a new menu. When prompted, enter a name for the new menu. Another window launches via iNomads for defining the menu. |
| *New File Maint* | This button is only available to users who are part of the *Inspector Edit Access* group selected for the **[Access Control](https://manual.pvxplus.com/webster/general-configuration#accesscontrol)** option; otherwise, this button does not display.<br>In addition, this button is only available if the **[iNomads URL/port](https://manual.pvxplus.com/webster/general-configuration#inomadsurl)** setting is specified; otherwise, this button does not display. To access this setting, click the **Setup** option on the left side to bring up the **System Configuration** page. Then, click the **Misc.** tab.<br>Click this button to create a new File Maintenance panel. When prompted, enter a name for the new panel. The **[File Maintenance Generator](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/fmgen-introduction)** launches via iNomads for defining the panel. |
| *Print* | Prints a listing of the selected object to the viewer. |
| *(Objects List)* | Lists the objects within the selected screen library (similar to the **[Objects List](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/console-and-object-list#objectlist)** in NOMADS Library Object Selection). The following details are displayed for each object:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Icon* \| Task type icon. \|<br>\| *Object Name* \| Name of the panel, dialog or window. \|<br>\| *Type* \| Letter code used to identify the object type. \|<br>\| *Title* \| Title that was entered in the object definition. \|<br>\| *Revised Date* \| Date and time stamp identifying the most recent modification. \|<br>\| *By* \| User ID of the person responsible for the most recent modification. \| |

## Setting the Top Level Directory

The setting of **%inspector_top$** controls the top level directory allowed in the **Webster+ Inspector**. It can be set in *webster.pxp*.

***Example:***

```
%inspector_top$="C:\webster-plus\"
```
