Quintiq file version 2.0
#parent: #root
Method SupplyChainDiagramSetSupplyChainView (
  MacroPlan macroplan
) id:Method_ApplicationMacroPlanner_SupplyChainDiagramSetSupplyChainView
{
  #keys: '[139394.0.1233269250]'
  Body:
  [*
    //Set the active view
    scv := null( SupplyChainView );
    
    if ( not isnull( macroplan ) )
    {
      scv := macroplan.GetSupplyChainView( ApplicationMacroPlanner.GetUserName() );
      
      if ( isnull( scv ) )
      {
        scv := macroplan.CreateSupplyChainView( ApplicationMacroPlanner.GetUserName() );
      }
    }
    DataHolderViewBase.Data( scv );
  *]
}
