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/09/01 01:23] – ↷ Links adapted because of a move operation 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 ====== | ||
| Line 6: | Line 7: | ||
| When defining a query the configurator has to indicate the business object, (or [[docs: | When defining a query the configurator has to indicate the business object, (or [[docs: | ||
| - | <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' |
| Line 25: | Line 26: | ||
| <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 [[docs: | + | 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: |
| See also [[docs: | See also [[docs: | ||