Queries for reuse
Before designing the query need to Consider the following points:
- You need to analyze your requirements and scenarios with the complete picture of your business needs. You can design your queries before you design the actual business process or UI components.
- Designing queries before business processes can help you use the same query for a business process, a form, and a report.
Example: A business process might require a query of open sales order documents. You could reuse that query in a form to show a list of open sales orders.
- Developers often try to solve the problem for only one component:
Example: When you are building a query for a single business process, and then using traditional form data sources for forms or creating new queries for reports.