Go to documentation repository
The user can create and edit queries in the receipts database. This is an optional function in addition to system setup.
Warning! The user query in the Receipt viewer window will be created and processed, only if the receipts parser has been set up (see the Setting up the parser (optional) section).
Query editor provides the following functions:
To open the query editor, click the Query editor button. The Query editor window opens.
To import a query from a text file, do the following:
Open a query file in the standard Windows file open dialog box.
Note
The query file import is complete.
Adding a query to the Query list
To edit queries, use the editing buttons (2).
To add a query to the Query list, do the following:
The name of the new query will be added to the list.
Editing a query name in the Query list
To edit a query name in the Query list, do the following:
Click the “…” button (2) or double-click the query name (1).
The query name will be changed.
Removing a query from the Query list
To delete a query from the Query list, do the following:
The query will be deleted from the list.
To display a query text, select its name in the Query list (1).
The query contents are shown in the Query text area (3).
The table shows the interface elements of the Query editor window.
No | Element name | Element type | Description | Data type | Default value | Value range |
1 | Query list | List, items imported or edited using the editing buttons | List of queries | Names of existing queries | - | Depends on the number of existing queries |
2 | Deny | Checkbox | Hides the query in the Receipt viewer window | Boolean | No | Yes — the query is not displayed in the Receipt viewer window. No — the query is displayed |
3 | Query text | Text field | The text of the query | SQL language | - | - |
4 | Parameters | Text field | Query parameters | SQL language | - | - |
5 | This is a subquery | Checkbox | Makes the query a slave | Boolean | - | Yes — the query is a slave. No — the query is not a slave |
6 | Subquery | Drop-down list | The query which is a slave relative to this query | Names of existing slave queries | - | Depends on the number of existing slave queries |
Use SQL templates while editing the text of the query. Click the Macro button (1) and select an item from the list that opens (2).
To search for queries in the Query list, do the following:
The search for queries in the Query list is complete.
To export the query list into a file, do the following:
Note
The query editing in the Receipt viewer window is complete.