13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.2.3 Using a new reportThe end users will be able to print their new reports from <strong>Reports</strong> & <strong>Queries</strong>:• by starting a print ( ).• by running the report test ( ).Therefore, no programming is required to print the report.In order for the reports created in <strong>Reports</strong> & <strong>Queries</strong> to be directly printed from a WinDev application, this featuremust be implemented in your application.You can for example include a window allowing the end user to:• select a report created in <strong>Reports</strong> & <strong>Queries</strong>.•run this report.2.3 Principle for using the queries2.3.1 Modifying a queryWhen modifying a query, the corresponding file (".WDR" file) is automatically checked out from the applicationlibrary and copied into the directory of "Custom reports and queries" (defined when creating the setupprocedure of the WinDev application).This is the query that will be modified by the end user.2.3.2 Using a modified queryTwo types of queries are available:• the queries used as data source for one or more reports.•the other queries.Query used as data source for a reportIf the query is used as data source for a report, the modified query will be automatically included in thereport.Other queryThe end users will be able to run their modified queries:• from <strong>Reports</strong> & <strong>Queries</strong> by clicking the icon by selecting "Query .. Run the query test".• from the WinDev application.In order for the queries created by <strong>Reports</strong> & <strong>Queries</strong> to be directly run from a WinDev application, this featuremust be implemented in your application.You can for example include a window allowing the end user to:• select a query created in <strong>Reports</strong> & <strong>Queries</strong>.• run the query and display its result in a table (with BuildBrowsingTable for example).Part 3: <strong>Reports</strong> and <strong>Queries</strong> 233

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!