Newer Version Available
ScoreCard Class
Represents a Real Time Reporting (RTR) report scorecard component. This
class extends the ReportComponent class.
Namespace
Usage
The RTRReportResult.ScoreCard class is accessible outside of the managed package.
Example
Here’s an example of how to extract the ScoreCard data from the RTRReportResult
object.
1// Extract the ScoreCard from the result
2// - The component name must match its 'uimapping' name
3// - The result must be casted to the correct type.
4cgcloud.RTRReportResult.ScoreCard scoreCard = (cgcloud.RTRReportResult.ScoreCard)
5 reportResult.getComponent('ScoreCard');
6
7// Extract KPI data. We assume the specified KPI's are in the configured scorecard
8Decimal kpiValue = scoreCard.getValue('ProPlanIncrVolume');
9
10system.debug('Value: ' + kpiValue);