# Input Source

> Source: https://manual.pvxplus.com/report-writer/designing-a-report/defining-the-data/input-source

To determine the source of the data to be displayed in the report, select *Input Source* from the Report Designer *Data* menu. The input source can be any native PxPlus file with an embedded data dictionary, a PxPlus View, a Query Definition, or any other data source whose data can be accessed using a Custom Data Source Object. External databases, such as ODBC, Oracle or DB2, can also be accessed via Views.

Select the type of *Input Source*:

|  |  |
| --- | --- |
| *Table Name* | Identify an input table using its logical table name as defined in **[Data Dictionary Maintenance](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/overview)**.<br>Note:  <br>To make it easier to locate a specific table name, apply a filter in the Table Names lookup. See [Filtering the Table Names Lookup](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/filtering-the-table-names-lookup). |
| *File Path* | Select a native PxPlus file using its physical path name. You can also enter a prefix file reference to an external database table (ODBC, ADO, Oracle, MySQL or DB2 are supported).<br>PxPlus data files must have embedded dictionaries and all files/tables must have keys defined. |
| *View* | Select a View from the presented list. Direct access to **[View Maintenance](https://manual.pvxplus.com/views-system/view-maintenance/overview)** may also be available, allowing you to update and create Views.<br>To suppress the View Maintenance option, set the **%RW_Suppress_View_Maintenance** global variable to a non-zero numeric value. |
| *Query Definition* | Select a Query definition. The Query definition must be a ***Query List*** or a ***Standard Query***. See **[Query Type](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/defining-a-query#type)**.<br>![](https://manual.pvxplus.com/migration-assets/705d890acd1fd1a76595e3ee3f13cbef8f7126cd2615c2322d673c6e5dbedac0.jpg)<br>Query definitions whose main data source is based on PxPlus files with embedded dictionaries, Views definitions, or external data base tables are supported. Queries whose main data source is based on manual field definitions (i.e. fields based on a field number, such as Fld#1) are ***not*** supported. For information on defining the contents of a query, see **[Query Header](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/query-header#fileinfo)** and **[Query Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/query-definition)**.<br>Ensure that formula definitions in selected queries have been assigned names that will be used to identify the formula. If formula names have not been specified in the Query definition, temporary names will be assigned; however, these are subject to change. See **[Query Formula Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/query-definition)**.<br>The above window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Query Lookup* \| Button that invokes the **Select a Query Definition** window:<br>![](https://manual.pvxplus.com/migration-assets/85a225dc949ec7e7dc1fc57d19fd1b05a293551ca652b1202390aecb04ffe1be.jpg)<br>This window presents a tree view format showing Query Lists and Queries that exist at the current display level and lower, arranged by directory, screen library and query.<br>Select a Query definition by clicking on a Query in the list. When a Query List or Query is selected, the *Library* and *Query Definition* input fields are automatically populated.<br>Note:  <br>A Query definition can also be selected by entering the Library and Query Definition input fields manually. \|<br>\| *Library* \| Enter the path to the library containing the Query List or Query definition. The Browse button allows you to browse the directory to locate the library. Be sure to ***use the simplest form of the path*** for your application.<br>Note:  <br>The Library name may be a specific or generic reference. See [Cascading Language Suffixes](https://manual.pvxplus.com/nomads-graphical-application/multilingual-capabilities/cascading-language-suffixes/overview). \|<br>\| *Query Definition* \| Select a Query definition from the list of queries in the specified library. \|<br>*(The ability to select a query definition as an input source was added in PxPlus 2020.)* |
| *Source Object* | Enter the name of the source object and an argument to identify the input source. The source object must adhere to the **[Custom Data Source Objects](https://manual.pvxplus.com/views-system/custom-data-source-objects/overview)** interface standard (used by the **[Views System](https://manual.pvxplus.com/views-system/introduction)**). |

Note:  
If a report requires data from multiple related files, additional related data sources may be available for selection if the main data source is defined using a Table Name or File Path. See [Related Data Sources](https://manual.pvxplus.com/report-writer/designing-a-report/defining-the-data/related-data-sources).  
  
You can also use a View as the input source (see [Views System](https://manual.pvxplus.com/views-system/introduction)) or a Query definition (see [Query Subsystem](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/overview)), both of which support linking data from multiple sources.

Once an input source is selected, its elements and their descriptions appear in the data items list on the left side of the Report Designer, ready to drag and drop into place on the report layout.

If you want to change the input source, a warning will be displayed to inform you that data elements, sort sequence, filters and data groupings may no longer be valid. You can choose to ignore this warning or clear the selected items.

A report can be defined with no data source selected. The output will consist of one page with a page header, report summary and a page footer.

Note:  
To suppress any of the input sources from the Data > Input Source menu or from the data source types in Step 2 of the [Report Wizard](https://manual.pvxplus.com/report-writer/report-wizard/introduction#steps), create a string consisting of input source codes to be excluded (V=View, F=File Name, T=Table Name, Q=Query Definition, O=Source Object). Then load it into the %RW_Suppress$ global variable.

## See Also

**[How to Process Multiple Files with the Report Writer](https://manual.pvxplus.com/how-to/how-to-process-multi-files-with-report-writer)**
