limj
2023-10-24 93652435728de839582440eefd5122c281181d35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 );
  *]
}