Quintiq file version 2.0 #parent: #root Method EditKPIWeight ( structured[shadow[KPIWeight]] selection, internal[GUIComponent] parent ) id:Method_ScenarioManager_DialogCreateEditKPIWeight_EditKPIWeight_1 { #keys: '[112884.0.705812277]' Body: [* // Edit shadow KPI weights isbatchedit := selection.Size() > 1; Dialog.EnableDisableComponents( isbatchedit ); data := selection.Element( 0 ); Dialog.Data( data ); result := this.DoModal( parent ); if( result > 0 ) { traverse( selection, Elements, kpi ) { if( CheckBoxBatchEditLevel.Checked() ) { kpi.Level( data.Level() ); } if( CheckBoxBatchEditWeight.Checked() ) { kpi.Weight( data.Weight() ); } } } *] }