Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:2000_concepts:0600_data_retrieval:0100_config_queries [2022/08/25 00:00] – ↷ Page moved from 2000_concepts:0600_data_retrieval:0100_config_queries to docs:2000_concepts:0600_data_retrieval:0100_config_queries administrator | docs:2000_concepts:0600_data_retrieval:0100_config_queries [2025/06/12 02:09] (current) – Rename to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| [< | [< | ||
| ====== Configuring Queries ====== | ====== Configuring Queries ====== | ||
| - | Queries can be defined at the configuration stage - a user can run such pre-configured queries in the Operation Mode. Pre-configured queries can also be referenced by rules (see '' | + | Queries can be defined at the configuration stage - a user can run such pre-configured queries in the Operation Mode. Pre-configured queries can also be referenced by rules (see '' |
| - | When defining a query the configurator has to indicate the business object, (or [[2000_concepts: | + | When defining a query the configurator has to indicate the business object, (or [[docs:2000_concepts: |
| - | <code aim> FIND Account WHERE Account.OwnerName = 'John Smith'</ | + | <code aim>FIND Account WHERE Account.OwnerName = 'John Smith' </ |
| One can define multiple conditions for a query – the conditions may be linked with the '' | One can define multiple conditions for a query – the conditions may be linked with the '' | ||
| Line 12: | Line 13: | ||
| Note that query conditions allow specifying not only attributes of the business object that the query will be searching, but also attributes of the related objects. For example, if account owner is a '' | Note that query conditions allow specifying not only attributes of the business object that the query will be searching, but also attributes of the related objects. For example, if account owner is a '' | ||
| - | <code aim> FIND Account WHERE Account.Owner.Name = 'John Smith' </ | + | <code aim>FIND Account WHERE Account.Owner.Name = 'John Smith' |
| It is also possible to indicate attributes of objects related to the related objects, for example, '' | It is also possible to indicate attributes of objects related to the related objects, for example, '' | ||
| - | The configurator may indicate that instances of a business object found by a query should be sorted by a particular attribute(s) in a particular order and also indicate how these instances should be displayed in the Operation Mode – see [[2000_concepts: | + | The configurator may indicate that instances of a business object found by a query should be sorted by a particular attribute(s) in a particular order and also indicate how these instances should be displayed in the Operation Mode – see [[docs:2000_concepts: |
| - | Configuration of queries is described in more detail in the [[2500_config_apps: | + | Configuration of queries is described in more detail in the [[docs:2500_config_apps: |
| - | < | + | <callout type=" |
| - | < | + | <callout type=" |
| - | <code aim>FIND Account WHERE Account.OwnerName = Customer.Name</ | + | <code aim>FIND Account WHERE Account.OwnerName = Customer.Name </ |
| - | The business object Customer used in a query condition is not the object that the query is searching for. //**Aware IM**// replaces references to such attributes with the actual values at run time – just before the search is performed. For example, if the value of the Name attribute of the Customer object is ‘John Smith’ the actual query performed by //**Aware IM**// is: | + | The business object Customer used in a query condition is not the object that the query is searching for. //**AwareIM**// replaces references to such attributes with the actual values at run time – just before the search is performed. For example, if the value of the Name attribute of the Customer object is ‘John Smith’ the actual query performed by //**AwareIM**// is: |
| - | <code aim>FIND Account WHERE Account.OwnerName = 'John Smith'</ | + | <code aim>FIND Account WHERE Account.OwnerName = 'John Smith' </ |
| - | Where does //**Aware IM**// find the instance of the Customer object and what happens if there are no instances of this object or if there are more than one instance? The answer to the first part of the question is that the instance is taken from the Context (this is explained in the [[2000_concepts: | + | Where does //**AwareIM**// find the instance of the Customer object and what happens if there are no instances of this object or if there are more than one instance? The answer to the first part of the question is that the instance is taken from the Context (this is explained in the [[docs:2000_concepts: |
| - | See also [[2000_concepts: | + | See also [[docs:2000_concepts: |
| - | </note> | + | </callout> |