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
| Quintiq file version 2.0
| #parent: #root
| Method EditStrategy (
| Strategy selection,
| internal[GUIComponent] parent
| ) as Strategy id:Method_ScenarioManager_DialogCreateEditStrategy_EditStrategy
| {
| #keys: '[112884.0.704991502]'
| Body:
| [*
| // Edit strategy
|
| SelectionStrategy.Data( selection );
|
| result := this.DoModal( parent );
|
| if( result > 0 )
| {
| SelectionStrategy.Data().Update( SelectionStrategy.Text() ); //We need to update the read only StrategyName attributes in StrategyLevel
| Dialog.CommitChanges();
| }
|
| return Dialog.Data().WrappedInstance();
| *]
| }
|
|