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/13 07:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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=" | ||
| **AwareIM** automatically provides support for dynamic paging, dynamic sorting and dynamic filtering of records returned by queries implemented as stored procedures. However, you need to know the following: | **AwareIM** automatically provides support for dynamic paging, dynamic sorting and dynamic filtering of records returned by queries implemented as stored procedures. However, you need to know the following: | ||
| - 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. | ||
| 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 ===== | ||