| Quintiq file version 2.0 | 
| #parent: #root | 
| MethodOverride IsActive ( | 
|   Object company, | 
|   Scenario scenario, | 
|   output String feedback_o | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Identify if the scenario is active' | 
|   TextBody: | 
|   [* | 
|     // hidayat Nov-30-2010 (created) | 
|     feedback_o := ''; | 
|     if( not isnull( company ) | 
|          and company.istype( MacroPlan ) | 
|          and MacroPlan::HasMacroPlan( company.astype( MacroPlan ), feedback_o ) ) | 
|     { | 
|       if( scenario.DatasetMDSID() <> company.MDSID() ) | 
|       { | 
|         feedback_o := Translations::Scenario_IsActive_NoMatchingMDSID(); | 
|       } | 
|     } | 
|     else | 
|     { | 
|       feedback_o := Translations::Scenario_IsActive_Default(); | 
|     } | 
|      | 
|     return feedback_o = ''; | 
|   *] | 
| } |