| Quintiq file version 2.0 | 
| #parent: #root | 
| MethodOverride SetAvailable ( | 
|   String usergroups | 
| ) | 
| { | 
|   Description: 'Set scenario available for usage, argument is used by the overloaded method for ScenarioFolder' | 
|   TextBody: | 
|   [* | 
|     editor := MDSEditor::Editor(); | 
|     allinfo := editor.ObjectInfos(); | 
|      | 
|     mdsInfo := select( allinfo, Elements, oinfo, oinfo.MDSID().MDSKey() = this.DatasetMDSID() ); | 
|      | 
|     if( not isnull( mdsInfo ) ) | 
|     { | 
|       if( not mdsInfo.IsLoaded() ) | 
|       { | 
|         // derred, [dataset-store storage] | 
|         isLoaded := false; | 
|         isLoadingInProgress := true; | 
|      | 
|         this.SetScenarioLoadedStatus( isLoaded, isLoadingInProgress ); | 
|      | 
|         // derred, all changed to use Async loading | 
|         this.ScenarioManager().LoadStorageScenarioMDS( mdsInfo.MDSID() ); | 
|       } | 
|     } | 
|   *] | 
| } |