Report Methods

The report methods are called when a browser makes a pdf query request (see Testing Queries).
The query request is initiated with printSelected() function, from DisplayBinding object.
The printSelected() uses the printUrl() function, from DataBinding object, to construct query request url with attached parameters.

Method Name Parameter Name Description Default Value
pdf   The method wraps around the PDF method. The method gets $GROUP_ID and $report_ids by calling SqlSelect2report_id() and passes them to the PDF method. Afterwards, when the PDF returns, it removes all $GROUP_ID records from public.report_id table with delete print group query.  
PDF   Prepares the parameters for the report.pdf component.  
  $GROUP_ID Is simply passed forward. Not defined.
  $report_ids It's checked if the REPORT_ID argument exists which overrides the $report_ids. The REPORT_ID can be defined defined in the ODT Reports as one of the cmd_parameters that are used for testing ODT reports. Then the $report_ids is passed forward to the report.pdf component. Not defined.
  $LANDSCAPE If it finds $LANDSCAPE parameter in a list of parameters it is discarded. Not defined.
  $report The parameter represents name of the report file used by the Reportman or ODT Reportman to generate the report. Not defined.
  $report_method The report method is determined by the ReportMethod() subroutine. Valid values are: rep, odt or pdf. None.
  $report_file The $report_file is used by the Reportman. The value is determined by the FindReportmanFile() subroutine.  
PRINT_FORM   Schema/form_name to be used for the report with attached orientation. See the button example. <%method PRINT_FORM>\
% my $schema = $m->scomp('SELF:SCHEMA');
% if($schema eq 'public'){
<& SELF:FROM &>\
% }else{
<& SELF:SCHEMA &>/<& SELF:FROM &>\
% }
, PORTRAIT, \
</%method>
PRINT_RECORDS   The method inserts the primary key of the public.recorset table and the group_id in the public.report_id table.  
  $WHERE   Empty string.
  $GROUP_ID   Not defined.
Topic revision: r17 - 01 Mar 2017, JanezStangelj
This site is powered by FoswikiCopyright (©) Leader.IT - Italy P.I. IT01434390223 Privacy policy & use of cookies