Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 2000_concepts:0600_data_retrieval:0100_config_queries [2026/08/13 00:53] – ↷ Links adapted because of a move operation localdev | 2000_concepts:0600_data_retrieval:0100_config_queries [2026/08/26 23:17] (current) – aware_admin | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| 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 [[2000_concepts: | ||
| - | Configuration of queries is described in more detail in the [[docs:2500_config_apps: | + | Configuration of queries is described in more detail in the [[2500_config_apps: |
| - | <callout | + | <alert type=" |
| + | **note** | ||
| - | <callout | + | If a query searches for instances of business objects belonging to a business object group, the conditions of the query may only use attributes common to all members of the group (see [[2000_concepts: |
| + | |||
| + | < | ||
| + | **note** | ||
| + | |||
| + | It is possible to define a query with conditions that use attributes of a business object that the query is not searching for (they are also called // | ||
| <code aim>FIND Account WHERE Account.OwnerName = Customer.Name </ | <code aim>FIND Account WHERE Account.OwnerName = Customer.Name </ | ||
| Line 49: | Line 55: | ||
| See also [[2000_concepts: | See also [[2000_concepts: | ||
| - | </callout> | + | </alert> |
| ===== Defining Queries Implemented as Stored Procedures===== | ===== Defining Queries Implemented as Stored Procedures===== | ||
| Line 60: | Line 66: | ||
| This stored procedure has two parameters - the second is hardcoded and the first one is initialized from the object in Context (ParamObject). | This stored procedure has two parameters - the second is hardcoded and the first one is initialized from the object in Context (ParamObject). | ||
| - | <callout | + | <alert type=" |
| + | **note** | ||
| When a configurator defines a new **AwareIM** query implemented as stored procedure and the stored procedure already exists, a developer can initialize the new query from the list of stored procedures available in the database and generate an appropriate EXEC_SP statement. | When a configurator defines a new **AwareIM** query implemented as stored procedure and the stored procedure already exists, a developer can initialize the new query from the list of stored procedures available in the database and generate an appropriate EXEC_SP statement. | ||
| - | </callout> | + | </alert> |
| + | |||
| + | <alert type=" | ||
| + | **note** | ||
| - | <callout type=" | + | If the Configurator ticks the ' |
| - | **AwareIM** automatically | + | |
| - Support for dynamic paging, sorting and filtering is only provided for MySQL and SQL Server databases. | - Support for dynamic paging, sorting and filtering is only provided for MySQL and SQL Server databases. | ||
| - If a stored procedure has multiple SELECT statements, **AwareIM** needs to know which one of the SELECT statements returns records compatible with the RETURN statement of the stored procedure. To do this, enclose this SELECT statement with BEGIN MAIN SELECT and END MAIN SELECT comments, for example: | - If a stored procedure has multiple SELECT statements, **AwareIM** needs to know which one of the SELECT statements returns records compatible with the RETURN statement of the stored procedure. To do this, enclose this SELECT statement with BEGIN MAIN SELECT and END MAIN SELECT comments, for example: | ||
| Line 71: | Line 81: | ||
| %%SELECT...%%\\ | %%SELECT...%%\\ | ||
| %%-- END MAIN SELECT%%\\ | %%-- END MAIN SELECT%%\\ | ||
| - | </callout> | + | </alert> |
| ===== Defining Queries Implemented as SQL SELECT Statements ===== | ===== Defining Queries Implemented as SQL SELECT Statements ===== | ||