| 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
27
28
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method UpdateScenarioOptimizerStatus ( |  |   Key macroplanmdsid, |  |   String status, |  |   String additionalremark, |  |   String uifeedback |  | ) |  | { |  |   TextBody: |  |   [* |  |     // Update the status of optimizer in scenario instance |  |     scenario := select( this, ScenarioMP, scenario, scenario.DatasetMDSID() = macroplanmdsid ); |  |      |  |     if( not isnull( scenario ) ) |  |     { |  |       s := scenario->UpdateOptimizerStatusAndRemark( status, additionalremark, uifeedback ); |  |       s->Exception()-> ( e )  |  |       { |  |       info("Optimizer status could not be updated on Macro Plan ", macroplanmdsid, " Error message: ", e.Message() );   |  |       } |  |     } |  |     else |  |     { |  |       info("Optimizer status could not be updated on Macro Plan ", macroplanmdsid, " Could not find scenario " );   |  |     } |  |   *] |  | } | 
 |