Quintiq file version 2.0
#parent: #root
Method RefreshSelectedBTS () id:Method_FormKPIColumns_RefreshSelectedBTS
{
  #keys: '[139544.3.27245914]'
  Body:
  [*
    owner := DataHolderOwner.Data();
    
    // Reset existing values
    traverse( owner, UIKPIColumn, kpi )
    {
      kpi.KPI( relflush );
    }
    
    // Set values of selected BTS
    traverse( DataHolderSelected.Data(), KPI, kpi )
    {
      column := select( owner, UIKPIColumn, column, kpi.KPIDefinition() = column.KPIDefinition() );
      if( not isnull( column ) )
      {
        column.KPI( relset, kpi );
      }
    }
  *]
}
