Quintiq file version 2.0
|
#parent: SelectionScenario
|
Response OnSelectionChanged () id:Response_SelectionScenario_OnSelectionChanged #extension
|
{
|
Body:
|
[*
|
// Select a secnario, will also be triggered when scenario is activated via scn mgr list
|
|
macroPlanOld := MacroPlan;
|
info( "SelectionScenario.OnSelectionCHanged macroPlanOld : " + [String]macroPlanOld.MDSID() )
|
|
ApplicationLibMacroPlanner.SelectScenarioReadOnly( SelectionScenario.Data() );
|
|
// Set active scenario on form
|
frm := Application.Frame().FindChildObject( 'ScenarioManager_FormScenario' );
|
|
if( not isnull( frm ) )
|
{
|
ApplicationLibMacroPlanner.ComponentMDS_SelectInstance( frm, SelectionScenario.Data() );
|
}
|
|
macroPlanNew := MacroPlan;
|
info( "SelectionScenario.OnSelectionCHanged macroPlanNew : " + [String]macroPlanOld.MDSID() )
|
ManufactureLTImputation::Transfer( macroPlanOld, macroPlanNew );
|
*]
|
}
|