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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2. USING REPORTS & QUERIES2.1 Starting <strong>Reports</strong> & <strong>Queries</strong>To allow the end users to customize the reports of your application or to create their own reports and theirown queries, all you have to do is start <strong>Reports</strong> & <strong>Queries</strong>.To allow the end users to start <strong>Reports</strong> & <strong>Queries</strong>:• display your reports in the preview window. The end users will be able to start <strong>Reports</strong> & <strong>Queries</strong> byclicking the icon .• add the "?" menu into the main window of your application: on the "Windows" pane, in the "Bars andmenus" group, expand "Main menu" and select "Add the "?" menu"). In the wizard for creating thismenu, check "Create, modify a report" and "Create, modify a query".•use Run<strong>Reports</strong>And<strong>Queries</strong> in your application.2.2 Principle for using the reports2.2.1 Modifying a reportWhen modifying a report, the corresponding file (".WDE" file) is automatically checked out from the applicationlibrary and copied into the directory of "Custom <strong>Reports</strong> & <strong>Queries</strong>" (defined when creating the setup procedureof the WinDev application).This is the report that will be modified by the end user.2.2.2 Using a modified reportThe test of the modified report can be directly run in "<strong>Reports</strong> & <strong>Queries</strong>". In this case, the initialization codeof the project will be run.By default, only the user who modified a report will use this modified report in the WinDev application.In order for a modified report to be used by all the other users of the application, on the "Home" pane, in the"General" group, the end user must expand "Save" and select "Share with the other users". The file correspondingto the modified report (".WDE" file) will be automatically deleted from the directory of "Custom reportsand queries" and copied into the directory of "Shared reports and queries".When a report is run from the WinDev application, the report file is sought:• in the directory of "Custom reports and queries" first.• then in the directory of "Shared reports and queries".• and finally in the library of the WinDev application.Note: An indication found in the title of the preview window informs the users that the report used correspondsto a modified report.To restore the report to its initial version, the end users must physically delete the file of the modified report(".WDE" file) from the directory of "Custom reports and queries" and/or from the directory of "Shared reportsand queries".232Part 3: <strong>Reports</strong> and <strong>Queries</strong>

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

Saved successfully!

Ooh no, something went wrong!