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.

Notes:• The HFSQL view must be created and initialized before printing the report. Only a HFSQL Classic orHFSQL Client/Server view can be used.• If additional parameters must be passed to the report, these parameters must be specified in iPrint-Report, after the name of the HFSQL view used. See “Report with parameters”, page 139 for moredetails.• ..ViewName used in the report code allows you to find out and change the HFSQL view associated withthe report.• ..<strong>Source</strong>Name used in the report code allows you to find out and modify the base data file of theHFSQL view associated with the report.WinDev example:The user selects the reference of an order in a list. The "Print" button is used to:•create the HFSQL view named "OrderView" containing the lines of the selected order(HCreateView).• open the preview window (iPreview).• print the "RPT_ViewReport" report (iPrintReport).In this example, the click code of the "Print" button is as follows:WinDev Mobile example:// Create the viewIF NOT HCreateView("OrderView", ORDLINE, "*", ..."Reference", "", "", ...hViewExclusive + hViewBreakable) THENError(HErrorInfo())ELSE// Open the preview windowiPreview()// Print the RPT_ViewReport reportiPrintReport(RPT_ViewReport, "OrderView")ENDThe user selects the reference of an order in a list. The "Print" button is used to:•create the HFSQL view named "OrderView" containing the lines of the selected order(HCreateView).• print the "RPT_ViewReport" report (iPrintReport).In this example, the click code of the "Print" button is as follows:// Create the viewIF NOT HCreateView("OrderView", ORDLINE, "*", ..."Reference", "", "", ...hViewExclusive + hViewBreakable) THENError(HErrorInfo())ELSE// Select the printeriConfigure()// Print the RPT_ViewReport reportiPrintReport(RPT_ViewReport, "OrderView")ENDPart 1: Report editor 125

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

Saved successfully!

Ooh no, something went wrong!