Hello experts, I'm trying to access a kpi item from a rule to set a value for it from my rule but I can't. What is the way to access it?
I have been able to access the section of the kpi called SectionKPIHeader0 using
let sectionedTable = clientAPI.getPageProxy().getControl('SectionedTable0');
if (sectionedTable) {
let kpiSection = sectionedTable.getSection('SectionKPIHeader0');
{
"Controls": [
{
"_Type": "Control.Type.SectionedTable",
"_Name": "SectionedTable0",
"Sections": [
{
"KPIHeader": {
"KPIItems": [
{
"_Name": "KPIItem0",
"CaptionLabel": "$(L,'AvanceMes')",
"MetricItems": [
{
"Value": "#Page:Main/#Control:fc_TotalVisitados/#Value",
"TrailingUnit": "%",
"_Name": "KPIItem0MetricItem0"
}
],
"ShowProgress": true,
"Progress": 0.5
}
]
},
"_Type": "Section.Type.KPIHeader",
"_Name": "SectionKPIHeader0",
"Visible": true
},