Quintiq file version 2.0
#parent: #root
Method Edit (
  internal[GUIComponent] parent,
  KpiMetaData selection
) id:Method_Kpi_dlgKpiMetaData_Edit
{
  #keys: '[136398.1.474842068]'
  Body:
  [*
    data := shadow( selection );
    
    // Append Name (unique) to the title
    this.Title( this.Title() + ": " + selection.Name() );
    
    // Disable the Name (unique)
    lblName.Visible( false );
    edtName.Visible( false );
    
    Dialog.Data( data );
                                       
    // Preselect the correct 'interpretation'.                                   
    this.UpdateInterpretationControl();
    
    if ( Dialog.DoModal( parent ) > 0 )
    {
      data.Commit();
    }
  *]
}
