ScoreCard Class

Represents a Real Time Reporting (RTR) report scorecard component. This class extends the ReportComponent class.

Namespace 

CGCloud

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);

ScoreCard Methods 

The following are methods for ScoreCard.

getValue(String kpiName) 

Returns true if a record can be retrieved.

Signature 

public RTRReportResult.ScoreCard getValue(String kpiName)

Parameters 

  • kpiName: Type:String. The name of the KPI from which the value is to returned. The key performance indicator (KPI) must be included in the scorecard.

Return Value 

Type:Decimal