Quintiq file version 2.0
#parent: #root
Method ReselectElementsInNavigationPanel () id:Method_ApplicationLibMacroPlanner_ReselectElementsInNavigationPanel
{
  #keys: '[132448.0.374868409]'
  Body:
  [*
    // Re-select elements in navigation panel
    
    // Re-select the units that were selected prior changing view
    traverse( DataHolderUnits.Data(), Elements, unit )
    {
      ListEntityTreeInPanel.ExtendSelectByKey( unit.Key() );
    }
    
    // Re-select the stocking points that were selected prior changing view
    traverse( DataHolderStockingPoints.Data(), Elements, sp )
    {
      ListEntityTreeInPanel.ExtendSelectByKey( sp.Key() );
    }
    
    // Re-select the product that were selected prior changing view
    traverse( DataHolderProducts.Data(), Elements, pd )
    {
      ListProductInPanel.ExtendSelectByKey( pd.Key() );
    }
    
    // Re-select the sales segment that were selected prior changing view
    traverse( DataHolderSalesSegments.Data(), Elements, pd )
    {
      ListSalesSegmentInPanel.ExtendSelectByKey( pd.Key() );
    }
  *]
}
