# Accessing Query Definition from IDE

> Source: https://manual.pvxplus.com/nomads-graphical-application/nomads-development/query-def-ide

The *Query Definition* task on the **[IDE Main Launcher](https://manual.pvxplus.com/pxplus-ide/ide-main-launcher)** is used for creating or editing a Standard Query or a Query List definition.

To select this task, expand the *Graphical Application Builder (NOMADS)* category on the *Menu* list. This task opens the **New/Existing Query** window, which is used to specify a library, the name of a new or existing query, and the query type (if creating a new query).

*(The Query Definition task was added in PxPlus 2023 Update 1.)*

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

This window consists of the following:

|  |  |
| --- | --- |
| *Library* | Defaults to the **[Default Library](https://manual.pvxplus.com/pxplus-ide/ide-main-launcher#defaultlib)** defined for the current project. If a default library was not defined, this will be blank. Enter the name of the library file or click the Query button. |
| *Name* | Enter the name of the query or click the drop-down arrow to select from a list of the existing queries in the library. If the query name does not exist, you will be able to create the new query when you click *Ok*.<br>Note:  <br>When entering a new query object name, valid characters are: letters (A-Z, a-z); numbers (0-9); ~ (tilde); @ (at symbol); . (period); $ (dollar sign); \_ (underscore); - (dash); + (plus sign). If an invalid character is used, a message will display. |
| *Type* | Type of query, either *Standard Query* or *Query List*. See **[Query Type](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/defining-a-query#type)**.<br>For an existing query, the type is shown and is disabled.<br>For a new query, this field is enabled when a *Name* is entered and defaults to *Standard Query* but can be changed. |
| *Ok* | For an existing query, launches **[Query Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/query-definition)** (if *Type* is *Standard Query*) or launches **[Query List Definition](https://manual.pvxplus.com/nomads-graphical-application/smart-controls/defining-smart-controls#Mark4)** (if *Type* is *Query List*).<br>For a new query, launches **[Query Header Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/query-header)** (if *Type* is *Standard Query*) or launches **[Query Definition - File information](https://manual.pvxplus.com/nomads-graphical-application/smart-controls/defining-smart-controls#Mark1)** (if *Type* is *Query List*). |
| *Cancel* | Closes the **New/Existing Query** window with no further action taken. |

## See Also

**[Query Subsystem](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/query-subsystem/overview)**
