Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:2000_concepts:0600_data_retrieval:0100_config_queries [2022/09/01 03:10] administratordocs:2000_concepts:0600_data_retrieval:0100_config_queries [2025/06/12 02:09] (current) – Rename to AwareIM aware_support3
Line 1: Line 1:
 +{{tag>data data_retrieval query user_interface UI concepts}}
 [<10>] [<10>]
 ====== Configuring Queries ====== ====== Configuring Queries ======
Line 27: Line 28:
 <code aim>FIND Account WHERE Account.OwnerName = Customer.Name </code> <code aim>FIND Account WHERE Account.OwnerName = Customer.Name </code>
  
-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> <code aim>FIND Account WHERE Account.OwnerName = 'John Smith' </code>
  
  
-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:2000_concepts:0800_data_processing:0100_rule_evaluation:0800_context_rule_execution:0300_other_uses_context|Other Usages of Context]] section); the answer to the second part is that if //**Aware IM**// cannot find the instance of the object in the Context it logs a run-time error and the query is not run. The queries using dynamic attributes should only be used in situations where such attributes can be unambiguously resolved.+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:0800_data_processing:0100_rule_evaluation:0800_context_rule_execution:0300_other_uses_context|Other Usages of Context]] section); the answer to the second part is that if //**AwareIM**// cannot find the instance of the object in the Context it logs a run-time error and the query is not run. The queries using dynamic attributes should only be used in situations where such attributes can be unambiguously resolved.
  
 See also [[docs:2000_concepts:0600_data_retrieval:0110_queries_user_input|Queries that Require User Input]] See also [[docs:2000_concepts:0600_data_retrieval:0110_queries_user_input|Queries that Require User Input]]
  • Last modified: 2022/09/13 18:07