Quintiq file version 2.0
#parent: #root
Method Edit (
  structured[shadow[KPIWeight]] selection,
  DialogCreateEditStrategy form
) id:Method_DialogEditKPIWeight_Edit
{
  #keys: '[139394.0.452025131]'
  Body:
  [*
    // Edits KPIWeight
    
    // Batch edit logic
    isbatchedit := selection.Size() > 1;
    
    Form.EnableBatchEdit( isbatchedit );
    
    // Populate DataHolder with selection
    DataHolderKPIWeights.Data( selection.Copy() );
    
    // Populate DataHolder with first element
    DataHolderDialogData.Data( selection.Element( 0 ) ); 
    DataHolderForm.Data( form );
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}
