Quintiq file version 2.0 #parent: #root Method PopulateScenarioComparisonMDSHandler ( structured[ScenarioMP] selection ) id:Method_ApplicationMacroPlanner_PopulateScenarioComparisonMDSHandler { #keys: '[151892.2.109591393]' Body: [* // Populate MDSHandler componentmds := ApplicationScope.ComponentMDS(); handles := construct( MDSGuard ); traverse( selection, Elements, sce, sce.IsLoaded() ) { mdsinstance := select( componentmds, ComponentMDSKinds.ComponentMDSInstances, m, m.MDSID().MDSKey() = sce.DatasetMDSID() ); if( not isnull( mdsinstance ) ) { handles.Add( mdsinstance.GetMDSHandle() ); } } DataHolderMDSHandler.Data( &handles ); *] }