rptgroup |
|
The rptgroup object is a data member of the pvxreport object interface, delegated to store and manipulate a group or section definition. One object is created for each report section.
The order in which various rptgroup objects are created is important, as the sections must be added in a very specific sequence: Page header, [Group 01 header], [Group 02 header], [Group nn header…], Detail Line, [Detail Line nn ], […Group nn footer], [Group 02 footer], [Group 01 footer], Report Summary, Page Footer. The pvxreportGetGroup( ) method can be used to retrieve the object handle for a rptgroup object, which allows access to all the object's methods and properties.
The rptgroup object has its own subordinate object, the rptline object, which in turn has its own subordinate object, the rptcell object. These are used to define the report lines and data cells in a report section. The rptfilterset object defines conditions associated with conditional detail line groups. The rptgroup object has methods to create and access all these objects.
The following table lists the properties of the rptgroup object:
Property |
Description | ||||||||||
BlankPageToFollow |
(Report Header Only) Follow the Report Header with a blank page (for duplex printing). | ||||||||||
CenterContents |
(Report Header/Trailer Only) Centre contents in the page. | ||||||||||
Columns$ |
Comma-separated list of column widths in points. | ||||||||||
CountPage |
(Report Header Only) Include the Header page(s) in the page count. | ||||||||||
Reference for the data source that is associated with this calculated field. Format is Source, SourceType. | |||||||||||
FillToBottom |
Boolean value (0/1) to indicate if the filler line is to be used to fill the space between the current section and the page footer (or page bottom) when the current section is the last section to be output to a page. | ||||||||||
IncludePageFooter |
(Report Header/Trailer Only) Output the page footer with the Report Header or Trailer. | ||||||||||
IncludePageHeader |
(Report Header/Trailer Only) Output the page header with the Report Header or Trailer. | ||||||||||
Level$ |
Two-character code indicating the section level:
When PG and L1 levels are set, the Name$ property is set to null, and the NewPage and RepeatHeader properties are set to 0. When the 00 and RP levels are set, the Name$ property is set to null. Level$ is set to null if the code is invalid. | ||||||||||
Name$ |
Name of the sort element on which a control break group is based following rules of element names; i.e. starts with an alpha character, followed optionally by alphanumeric, period and underscore characters. Name$ is null for page, detail and report summary section levels. | ||||||||||
Boolean value (0/1) to indicate if a new page is to be started when a control break or report summary occurs. Not applicable to page and detail line levels. | |||||||||||
(Control Break Level Only) Boolean value (0/1) to indicate whether a new report file is to be created whenever the group changes. The MultipleReports property of the parent pvxreport object is automatically adjusted based on this setting. Only one control break level can have this property turned On. (The NewReport property was added in PxPlus 2022.) | |||||||||||
OutputOddPageCount |
(Report Trailer Only) Output Report Trailer only if true page count is odd (for duplex printing). | ||||||||||
RepeatHeader |
Boolean value (0/1) to indicate if the control break group header lines are to be repeated at the top of each page. | ||||||||||
ResetPage |
(Control Break Level Only) Boolean value (0/1) to indicate whether to reset the current page number to one when the group changes. | ||||||||||
Type$ |
Single-character code indicating the type of report section: |
The following table lists the methods of the rptgroup object:
Method |
Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddCell(Lnidx) |
Creates a new
rptcell object using the next available sequence number. Only cells with data or formatting need to have an rptcell object created for them. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddFilter(Setidx) |
Creates a new
rptfilter object within the
rptfilterset object specified by Setidx using the next available sequence number. One object is created for each filter set. The sequence number can be used as the index number to identify the object when using the
RemoveFilter( ) and
GetFilter( ) methods. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddFilterSet( ) |
Creates a new
rptfilterset object using the next available sequence number. One object is created for each filter set. The sequence number can be used as the index number to identify the object when using the
RemoveFilterSet( ) and
GetFilterSet( ) methods. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddLine( ) |
Creates a new
rptline object using the next available sequence number. It is important to add the lines in the correct sequence, as this is the sequence in which the lines in the group will be displayed in the report. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CellCount(Lnidx) |
Returns the number of data bearing cells in a line. Note: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClearFilters( ) |
Removes all rptfilterset objects in the set and resets FilterSetCount to 0. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClearLines( ) |
Removes all rptline objects from the group and resets LineCount to 0. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FilterCount(Setidx) |
Returns the number of rptfilter objects in the rptfilterset object specified by Setidx. If Setidx is omitted, returns the number of rptfilter objects in the first filter set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FilterSetCount( ) |
Returns number of rptfilterset objects in the set. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GetCell(Lnidx,Cellidx) |
Returns the handle for an
rptcell object. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GetCondition$(Setidx,Filteridx) |
Returns a string containing the PxPlus expression associated with a filter. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns the handle for an
rptfilter object. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns the handle for an
rptfilterset object. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GetGroupDefinition$( ) |
Returns a formatted string based on section information. The format of the string is that used to define a BREAK= entry in the report definition file. Returns null if the information in the rptgroup object is invalid.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GetLine(idx) |
Returns the handle for an
rptline object. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns the number of lines in the section. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RemoveCell(Lnidx,Cellidx) |
Removes an
rptcell object from the section. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Removes an
rptfilter object. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Removes an
rptfilterset object. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RemoveLine(idx) |
Removes an
rptline object from the section. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Format and set the value in the
DataSource$ property. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SetGroupDefinition(Def$) |
Assigns rptgroup properties based on a formatted string. Returns 1. The format of the string is that used to define a BREAK= entry in the report definition file.
|