No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
ReportMetadata Class
Namespace
Usage
Report metadata gives information about the report as a whole, such as the report type, format, summary fields, row or column groupings, and filters that are saved to the report. You can use the ReportMetadata class to retrieve report metadata and to set metadata that can be used to filter a report.
ReportMetadata Methods
The following are methods for ReportMetadata. All are instance methods.
getAggregates()
Syntax
public LIST<String> getAggregates()
Usage
For example:
- a!Amount represents the average for the Amount column.
- s!Amount represents the sum of the Amount column.
- m!Amount represents the minimum value of the Amount column.
- x!Amount represents the maximum value of the Amount column.
- s!<customfieldID> represents the sum of a custom field column. For custom fields and custom report types, the identifier is a combination of the summary type and the field ID.
getCurrencyCode()
Syntax
public String getCurrencyCode()
Return Value
Type: String
getDeveloperName()
Syntax
public String getDeveloperName()
Return Value
Type: String
getGroupingsAcross()
Syntax
public LIST<Reports.GroupingInfo> getGroupingsAcross()
Return Value
Type: List<Reports.GroupingInfo>
Usage
The identifier is:
- An empty array for reports in summary format, because summary reports don't include column groupings
- BucketField_(ID) for bucket fields
- The ID of a custom field when the custom field is used for a column grouping
getGroupingsDown()
Syntax
public LIST<Reports.GroupingInfo> getGroupingsDown()
Return Value
Type: List<Reports.GroupingInfo>
Usage
The identifier is:
- BucketField_(ID) for bucket fields
- The ID of a custom field when the custom field is used for grouping
getReportBooleanFilter()
Syntax
public String getReportBooleanFilter()
Return Value
Type: String
getReportFilters()
Syntax
public LIST<Reports.ReportFilter> getReportFilters()
Return Value
Type: List<Reports.ReportFilter>
getReportFormat()
Syntax
public Reports.ReportFormat getReportFormat()
Return Value
Type: Reports.ReportFormat
Usage
This value can be:
- TABULAR
- SUMMARY
- MATRIX
getReportType()
Syntax
public Reports.ReportType getReportType()
Return Value
Type: Reports.ReportType
setReportBooleanFilter(String)
Syntax
public Void setReportBooleanFilter(String reportBooleanFilter)
Parameters
- reportBooleanFilter
- Type: String
Return Value
Type: Void
setReportFilters(LIST<Reports.ReportFilter>)
Syntax
public Void setReportFilters(LIST<Reports.ReportFilter> reportFilters)
Parameters
- reportFilters
- Type: List<Reports.ReportFilter>
Return Value
Type: Void